> So where does the Py_DECREF() for the above Py_INCREF() live?  I
> expected to find this code snippet somewhere, but couldn't:
> 
>   if (type->tp_flags & Py_TPFLAGS_HEAPTYPE)
>     Py_DECREF(type);

For a regular heaptype, it's in subtype_dealloc:

                /* Can't reference self beyond this point */
                Py_DECREF(type);

HTH,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to