Message186647
> As mentioned earlier: this is the only way to cleanup extension
> modules
> in Python 2.x and the trash can patch broke this.
Well, the doc clearly says
"Since Python’s internal finalization will have completed before
the cleanup function, no Python APIs should be called by func".
Why wouldn't you clean up the dict (if it exists) at module
initialization instead? You will have a working Python
runtime at this point.
That said, we could hack a 2.7-specific hack to the patch, in
order to disable the trashcan mechanism at shutdown. |
|
Date |
User |
Action |
Args |
2013-04-12 15:48:44 | pitrou | set | recipients:
+ pitrou, lemburg, amaury.forgeotdarc |
2013-04-12 15:48:44 | pitrou | link | issue17703 messages |
2013-04-12 15:48:44 | pitrou | create | |
|