[PATCH 2 of 3 in crew] parsers: use Py_INCREF safely
Siddharth Agarwal
sid0 at fb.com
Mon Sep 16 16:36:21 CDT 2013
On 09/16/2013 12:36 PM, Antoine Pitrou wrote:
> Are you sure about that?
> I can't think of a situation where you'd want to incref something after
> untracking it
Python's GC (which is actually just a cycle collector) is different from
its refcounting implementation. All Python objects have a refcount, but
only some container objects are tracked by the GC. We call
PyObject_GC_Untrack because we know that entry cannot take part in a cycle.
More information about the Mercurial-devel
mailing list