Antoine Pitrou added the comment:

> 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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17703>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to