Python Script Bug

Terry Reedy tjreedy at udel.edu
Fri Oct 24 07:09:57 CEST 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