PEP 227 (was Re: Nested scopes resolution -- you can breathe again!)
Alex Martelli
aleaxit at yahoo.com
Thu Mar 1 12:24:57 EST 2001
"Jeremy Hylton" <jeremy at alum.mit.edu> wrote in message
news:15006.33055.663211.136994 at w221.z064000254.bwi-md.dsl.cnc.net...
> Or: global NAME in FUNCTION
>
> def eggs():
> z = 2
> def spam():
> def inner():
> global x in spam, z in eggs
Yep, looks better. And it should be such a rare
use that the occasional need for repetition,
global x in spam, y in spam
is no big deterrent.
Alex
More information about the Python-list
mailing list