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   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://boredomandlaziness.skystorm.net
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to