Author pitrou
Recipients amaury.forgeotdarc, lemburg, pitrou
Date 2013-04-12.15:48:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
> 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:44pitrousetrecipients: + pitrou, lemburg, amaury.forgeotdarc
2013-04-12 15:48:44pitroulinkissue17703 messages
2013-04-12 15:48:44pitroucreate