Message177773
Infortunately, the behaviour is the same in 2.7 and 3.2, and only changes with 3.3, which means that this is probably related to the new implementation of the import system.
This won't be backported.
[It would be interesting to understand why there is a difference, btw... is a reference to the module held somewhere?]
A possible workaround for such module-level calls atexit.register() is to ensure that used globals are captured in the function namespace, a bit like some __del__ methods:
def _clean(_Cleanup=_Cleanup):
.... |
|
Date |
User |
Action |
Args |
2012-12-19 19:38:23 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, techtonik, sbt, serhiy.storchaka |
2012-12-19 19:38:23 | amaury.forgeotdarc | set | messageid: <1355945903.57.0.576732221758.issue16718@psf.upfronthosting.co.za> |
2012-12-19 19:38:23 | amaury.forgeotdarc | link | issue16718 messages |
2012-12-19 19:38:23 | amaury.forgeotdarc | create | |
|