Reload() Confusion

Skip Montanaro skip at
Sun Mar 21 15:46:33 CET 2004

    >> It is my understanding that the reloaded objects become *new* objects
    >> in memory, available only via a fully-qualified reference to the new
    >> module.  The old objects remain in memory until the last reference to
    >> them is gone.

    Mel> It seems to me that the module keeps its identity over the reload:

Yup.  The module remains the same, but its __dict__ is repopulated.


More information about the Python-list mailing list