2009/2/17 MRAB <goo...@mrabarnett.plus.com>:
> It isn't possible to have an uninitialised variable. If it doesn't have
> a value then it doesn't exist.

True, but you can use the global statement to refer to the variable
within a function and read from the variable there, without it being
already initialised in the module.

Of course, if you try to call that function before the global has been
initialised, python will complain [and rightly so :)]

Paddy

-- 
"Ray, when someone asks you if you're a god, you say YES!"
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to