Re: import reloading

2014-09-24 Thread Dave Angel
Robin Becker Wrote in message: > On 24/09/2014 12:54, Dave Angel wrote: >> Robin Becker Wrote in message: >>... >>> 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__? >>> >> >> Noth

Re: import reloading

2014-09-24 Thread Robin Becker
On 24/09/2014 12:54, Dave Angel wrote: Robin Becker Wrote in message: ... 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__? Nothing gets reset or run. It simply reuses the existing mod

import reloading

2014-09-24 Thread Robin Becker
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