PEP 227 (was Re: Nested scopes resolution -- you can breathe again!)

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Mar 1 21:50:21 EST 2001


Jeremy Hylton wrote:
> 
>             global x in spam, z in eggs

Hee, hee! I like it! Now we would have a way for
people to explicitly declare all variables if they
wanted, if we let it work on the local scope as
well:

  def spam():
    global x in spam, y in spam
    ...

or, to make that a little shorter,

    global (x, y) in spam

global-can-mean-local-too-ly yrs,
-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list