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. -- http://mail.python.org/mailman/listinfo/python-list