Variable scope question.. singletons?

Adam Vandenberg adamv at nwlink.com
Sun Nov 14 21:34:26 EST 1999


I have a bunch of modules that will be used by a bunch of top-level scripts
(cgis).
Each top-level script is going to: "import prefs" which I want to check
cookies
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?

Thanks all.







More information about the Python-list mailing list