Reload() Confusion

Skip Montanaro skip at pobox.com
Sun Mar 21 09:46:33 EST 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.

Skip




More information about the Python-list mailing list