Proposal: local variable declarations and type advice
Emile van Sebille
emile at fenx.com
Wed Feb 27 15:08:36 EST 2002
"Jeff Shannon" <jeff at ccvcorp.com> wrote in message
news:3C7D3B2C.80A97BA2 at ccvcorp.com...
>
>
> Paul Rubin wrote:
>
> > Also, there's no way to make sure that the "del temp" at the end of
> > a block actually gets run, unless you put try...finally around it,
> > which is a big mess.
>
> I may be in way out of my depth here, but I don't think that this is
true. If
> you explicitly delete an object, then that name should be guaranteed
to be
> unbound.
Unless, of course, the name shadowed something. Consider:
>>> list = range(3)
>>> del list
>>> list
<built-in function list>
--
Emile van Sebille
emile at fenx.com
---------
More information about the Python-list
mailing list