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 ncoghlan
Recipients barry, benjamin.peterson, isoschiz, ncoghlan, pitrou, sbt
Date 2013-04-20.16:01:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366473678.19.0.447520568548.issue17800@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, I've figured out that rather than exposing __del__ if tp_del is populated, or generalising the generator special case, the simplest way to make this info accessible is to be able to ask the *garbage collector* if it thinks an object needs finalising.

That actually makes this a pretty easy issue (as C issues go) - it's just a matter of exposing http://hg.python.org/cpython/file/default/Modules/gcmodule.c#l525 (has_finalizer) as gc.needs_finalizing.

It will be easier once #17468 is done though, since that will make it clearer what the documentation should say.
History
Date User Action Args
2013-04-20 16:01:18ncoghlansetrecipients: + ncoghlan, barry, pitrou, benjamin.peterson, sbt, isoschiz
2013-04-20 16:01:18ncoghlansetmessageid: <1366473678.19.0.447520568548.issue17800@psf.upfronthosting.co.za>
2013-04-20 16:01:18ncoghlanlinkissue17800 messages
2013-04-20 16:01:17ncoghlancreate