Need help with "global" variables

Alex new_name at mit.edu
Sun Jul 15 05:42:16 CEST 2001


In python, "global" doesn't mean what you think it means.  It means
global to the current module.  The only way to make a binding global
over an entire program is to stick it in the __builtin__ module.
However, there is probably a better design for your program that doesn't
need so many global variables.

Alex.



More information about the Python-list mailing list