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 kristjan.jonsson
Recipients asvetlov, jimjjewett, kristjan.jonsson, pitrou, stutzbach
Date 2010-11-30.13:16:22
SpamBayes Score 0.001477572
Marked as misclassified No
Message-id <1291122984.71.0.138896746302.issue10576@psf.upfronthosting.co.za>
In-reply-to
Content
Hi, as I stated, the original patch was simply our original implementation.
Here is a new patch.  It is simpler:
1) it exposes a gc.callbacks list where users can register themselves, in the spirit of sys.meta_path
2) One can have multiple callbacks
3) Improve error handling
4) The callback is called with a "phase" argument, currently 0 for start, and 1 for the end.

Let's start bikeshedding the calling signature.  I like having a single callback, since multiple callables are a nuisance to manage.

Once we agree, I'll post a patch for the documentation, and unittests.
History
Date User Action Args
2010-11-30 13:16:24kristjan.jonssonsetrecipients: + kristjan.jonsson, jimjjewett, pitrou, stutzbach, asvetlov
2010-11-30 13:16:24kristjan.jonssonsetmessageid: <1291122984.71.0.138896746302.issue10576@psf.upfronthosting.co.za>
2010-11-30 13:16:22kristjan.jonssonlinkissue10576 messages
2010-11-30 13:16:22kristjan.jonssoncreate