Is mymodule.myvariable a 'global'? (What is proper definition of 'global variable'?)

seberino at spawar.navy.mil seberino at spawar.navy.mil
Sun Aug 21 12:45:26 EDT 2005


Python lets me access module level variables from *anywhere*.  All I
have
to do is add module name in front.

e.g.

mymodule.myvariable

Is this considered a 'global'?  Or, does a 'global variable' have to be
accessible anywhere *without* a namespace in front?

(I'm not sure what proper academic definition of 'global variable' is.)

Thanks!

Chris




More information about the Python-list mailing list