import reloading

Robin Becker robin at reportlab.com
Wed Sep 24 05:53:06 EDT 2014


I'm tryng to bring some outdated ihooks code into the modern world.

I notice that module loaders are supposed to re-use an existing module if it is 
already in sys.modules.

Is a loader supposed to reset all the reused module's attributes and reset the 
__dict__ or does it just run the code from the module in hte __dict__?
-- 
Robin Becker




More information about the Python-list mailing list