A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-August/091194.html below:

[Python-Dev] another Py_TPFLAGS_HEAPTYPE question

[Python-Dev] another Py_TPFLAGS_HEAPTYPE question [Python-Dev] another Py_TPFLAGS_HEAPTYPE question"Martin v. Löwis" martin at v.loewis.de
Mon Aug 17 00:37:48 CEST 2009
> 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4