Creating a local variable scope.

Daniel Stutzbach daniel at stutzbachenterprises.com
Sat Sep 12 11:12:08 EDT 2009


On Sat, Sep 12, 2009 at 10:02 AM, Ethan Furman <ethan at stoneleaf.us> wrote:

> That's probably why he called it as:
> with do_nothing() as *imaginary*_local_scope:
>    ...
>    del spam, eggs, imaginary_local_scope
>
> and then as the last item deleted all the variables, except the one he
> wanted to keep.
>

You're absolutely right.  My apologies.  I need to learn not to post to
mailing lists first thing in the morning! ;-)

--
Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090912/0aede517/attachment-0001.html>


More information about the Python-list mailing list