The global statement

Peter Hansen peter at engcorp.com
Wed Jul 23 11:27:24 EDT 2003


Thomas Güttler wrote:
> 
> global BAD
> BAD=1
> 
> def foo():
>     global BAD
>     print BAD

Note: the first use of global above, outside a function, is redundant. 

-Peter




More information about the Python-list mailing list