Variable scope question.. singletons?
adamv at nwlink.com
Mon Nov 15 03:34:26 CET 1999
I have a bunch of modules that will be used by a bunch of top-level scripts
Each top-level script is going to: "import prefs" which I want to check
and fill out a Prefs class.
So far OK.
Now, is there any way to make this class "more global" so that any of the
modules I import can access it?
I guess this is sort of like declaring the variable "extern".
Any thoughts? Does this make sense?
More information about the Python-list