[Python-Dev] another Py_TPFLAGS_HEAPTYPE question (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Mon Aug 17 00:37:48 CEST 2009
- Previous message: [Python-Dev] another Py_TPFLAGS_HEAPTYPE question
- Next message: [Python-Dev] another Py_TPFLAGS_HEAPTYPE question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
So where does the PyDECREF() for the above PyINCREF() live? I expected to find this code snippet somewhere, but couldn't:
if (type->tpflags & PyTPFLAGSHEAPTYPE) PyDECREF(type);
For a regular heaptype, it's in subtype_dealloc:
/* Can't reference self beyond this point */
Py_DECREF(type);
HTH, Martin
- Previous message: [Python-Dev] another Py_TPFLAGS_HEAPTYPE question
- Next message: [Python-Dev] another Py_TPFLAGS_HEAPTYPE question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]