Accessing variables in __main__ from modules....
Carel Fellinger
cfelling at iae.nl
Thu Mar 29 18:06:00 EST 2001
Carel Fellinger <cfelling at iae.nl> wrote:
> The most straightforwarth way to achieve this would be to import Debug
> from main, or better to have a seperate options module and import from
> there. like:
...
> other module:
Oh, and importing something in many modules is relative cheap. Only
the first import compiles and executes that module, subsequent imports
only bind the module object to a name in the current scope.
--
groetjes, carel
More information about the Python-list
mailing list