Message109248
| Author |
pitrou |
| Recipients |
kristjan.jonsson, pitrou, tim.peters |
| Date |
2010年07月04日.17:59:11 |
| SpamBayes Score |
0.003966864 |
| Marked as misclassified |
No |
| Message-id |
<1278266349.3250.17.camel@localhost.localdomain> |
| In-reply-to |
<1278266181.78.0.521399186253.issue9141@psf.upfronthosting.co.za> |
| Content |
> All this patch does, is to generalize the mechanism already provided
> for genobject.c (by PyGen_NeedsFinalizing()), to any object: Any
> object can signal to gc that: a) it is ok to collect a cycle with me
> in it, or b) no, it is unsafe to do so. With this patch in place,
> PyGen_NeedsFinalizing() no longer needs to be a special case in
> gcmodule.c.
Adding an API function and an additional traversal pass to the GC just
for the sake of removing a special case doesn't seem reasonable to me.
That's why I'm asking what specific problem you are trying to solve.
(rather than simply trying to make things "nicer") |
|