opposite of import

John Salerno johnjsal at NOSPAMgmail.com
Thu Aug 3 10:05:50 EDT 2006


Simon Brunning wrote:

> but for the fact that Python
> stashes a reference to the module in (IIRC) sys.__modules__. And you
> mess with *that* at your peril. ;-)

According to Python in a Nutshell, references are stored in the 
dictionary sys.modules, but I'm not sure if it matters that it's not 
__modules__ instead (unless that also exists).



More information about the Python-list mailing list