[Pyrex] Re: Globals and wrapping Eiffel
Brandon Long
blong at fiction.net
Wed Nov 19 23:13:45 CET 2003
On 11/19/03 Bob Ippolito uttered the following other thing:
>
> Modules don't get unloaded until their reference count goes to zero.
> "import t" makes two references to t, one in sys.modules and one in the
> namespace you import it from. Modules never leave sys.modules
> implicitly, you have to do that on purpose, which isn't always a good
> idea -- especially for extension modules. For example, the interpreter
> will crash if you unload an extension module containing Objective C
> code (on OS X, at least). pydoc is the only "deletes stuff from
> sys.modules" offender that I'm aware of, but there are surely others.
Reload will also update the sys.modules, but I'm not sure if that
actually works for extension modules. I don't believe it does.
Brandon
--
"You will pay for your sins. If you have already paid, please
disregard this message."
http://www.fiction.net/blong/
More information about the Pyrex
mailing list