loop scope
Isaac To
kkto at csis.hku.hk
Fri Mar 12 09:53:55 EST 2004
>>>>> "Arthur" == Arthur <ajsiegel at optonline.com> writes:
Arthur> I am not following this argument. The surprise, specifically,
Arthur> is that I don't think of myself as having declared "t" as a
Arthur> variable. it is don't magically, as a placeholder and for a
Arthur> very specific purpose. So I would expect it to go away outside
Arthur> of the " [ " and " ] " by equal and opposite magic.
I remember I've read that this more proper scoping for list comprehension
will take effect in a future version of Python.
Regards,
Isaac.
More information about the Python-list
mailing list