[openstack-dev] Use of local()

Nachi Ueno nachi at nttmcl.com
Thu Feb 7 22:32:57 UTC 2013


Thank you for your opinions!

so 5 reply for -1 for local() ,and 1 reply for +1 for local().
so something like "not in" operator discussion, how about set the
community policys not to use
local() ?

2013/2/7 Sean Dague <sdague at linux.vnet.ibm.com>:
> On 02/07/2013 03:32 PM, Mark McLoughlin wrote:
>>
>>    _("The server with id %(s_id)s has no key %(m_key)s") %
>> dict(s_id="1234", m_key="imageId")
>
>
> Well, it's actually
>
> (_("The server with id %(s_id)s has no key %(m_key)s") %
>
>  dict(s_id="1234", m_key="imageId")
>
> because of line length.
>
> I'm not a huge fan of locals(), and would love to get rid of it largely to
> stop making pyflakes light up my emacs buffers errantly, but realize we're
> going to have a lot more line wrapping in the process.
>
>         -Sean
>
> --
> Sean Dague
> IBM Linux Technology Center
> email: sdague at linux.vnet.ibm.com
> alt-email: sldague at us.ibm.com
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list