This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients amaury.forgeotdarc, lemburg, pitrou
Date 2013-04-12.15:48:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422567026.47753232.1365781718576.JavaMail.root@zimbra10-e2.priv.proxad.net>
In-reply-to <51682B3C.8090905@egenix.com>
Content
> 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.
History
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