Message122901
| 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:24 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, jimjjewett, pitrou, stutzbach, asvetlov |
| 2010年11月30日 13:16:24 | kristjan.jonsson | set | messageid: <1291122984.71.0.138896746302.issue10576@psf.upfronthosting.co.za> |
| 2010年11月30日 13:16:22 | kristjan.jonsson | link | issue10576 messages |
| 2010年11月30日 13:16:22 | kristjan.jonsson | create |
|