[openstack-dev] Use of local()
Monty Taylor
mordred at inaugust.com
Thu Feb 7 19:38:23 UTC 2013
On 02/07/2013 12:23 PM, Nachi Ueno wrote:
> Hi folks
>
> I wanna ask the opinion of use of local()
> This function is mainly used for logging because of no need to specify
> actual parameters.
>
> However, the variable ,which code checker says it is not used, is used
> by local() sometimes.
> so I prefer not to use local() .
> I also believe to specify used parameter improves readability of the code.
>
> I appreciate if I could get the opinion on the community.
I agree with Nachi. It's one of those hacks which is actually clever,
but takes a few minutes to figure out what's going on.
Monty
More information about the OpenStack-dev
mailing list