Is a module's __name__ unique?

Tom tom-main at REMOVEME.home.com
Thu Aug 3 16:03:06 EDT 2000


Does the __name__ of a module object uniquely identify the module object
(with an interpreter session)?

The module object's name (the key in the sys.modules dict) is, but I don't
know how to get it given a module object.

I need a way to unique identify module object (that is pickle-able).

Thanks,

Tom.





More information about the Python-list mailing list