xml.dom's weirdness?

Stefan Behnel stefan_ml at behnel.de
Sun Jul 27 10:48:05 CEST 2008


Lie wrote:
> Question: Is there a way to list loaded modules, including those that
> aren't in my namespace?

such as sys.modules?

Modules are not unloaded automatically just because you do not use them
yourselves. If the module is imported for whatever reason by whatever other
module, it stays alive until it's no longer referenced (including the
reference in sys.modules).

Stefan



More information about the Python-list mailing list