Python Script Bug

Terry Reedy tjreedy at udel.edu
Fri Oct 24 01:09:57 EDT 2008


Chris Rebert wrote:

>> global t
> 
> 'global' declarations are only allowed (and only make sense) inside a
> function. Remove the above line.

Global statements are *allowed* anywhere (by BDFL decision - does not 
hurt and he wants to keep code in and out of functions as identical as 
possible), but rest of statement I agree with.




More information about the Python-list mailing list