Message187438
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. |
|
Date |
User |
Action |
Args |
2013-04-20 16:01:18 | ncoghlan | set | recipients:
+ ncoghlan, barry, pitrou, benjamin.peterson, sbt, isoschiz |
2013-04-20 16:01:18 | ncoghlan | set | messageid: <1366473678.19.0.447520568548.issue17800@psf.upfronthosting.co.za> |
2013-04-20 16:01:18 | ncoghlan | link | issue17800 messages |
2013-04-20 16:01:17 | ncoghlan | create | |
|