[issue17800] Add gc.needs_finalizing() to check if an object needs finalising

Nick Coghlan report at bugs.python.org
Sun Apr 21 06:48:14 CEST 2013


Nick Coghlan added the comment:

Antoine came up with a scheme (see issue 17807) that should eliminate the tp_del implementation from generator objects by moving the cleanup code to the frame deallocation.

This will restore Guido's original assumption that types implemented in C won't need to provide tp_del, so this proposal becomes obsolete.

----------
dependencies:  -Generator memory leak
resolution:  -> out of date
superseder:  -> Generator cleanup without tp_del

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17800>
_______________________________________


More information about the Python-bugs-list mailing list