global var

Nick Coghlan ncoghlan at iinet.net.au
Sat Feb 19 21:55:35 EST 2005


Michael Hoffman wrote:
> raver2046 wrote:
> 
>> How to have a global var in python ?
> 
> 
> "global var" will give you a global variable named "var".

Whether this advice is correct or not depends greatly on what the OP means by 
'global' :)

Module global, it's right, application global it's wrong. Given the nature of 
the question, I suspect the latter.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net



More information about the Python-list mailing list