Symbols as parameters?

Martin Drautzburg Martin.Drautzburg at web.de
Fri Jan 22 20:39:31 CET 2010


Martin Drautzburg wrote:
 
>> with scope():
>>     # ...
>>     # use up, down, left, right here
>> 
>> # up, down, left, right no longer defined after the with block exits.

Just looked it up again. It's a cool thing. Too bad my locals() hack
would still be required. The result would be less noisy (and actually
really beautiful) than the decorator implementation though. Thanks
again for pointing this out to me.



More information about the Python-list mailing list