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/2002-March/021933.html below:

[Python-Dev] Refcounting heap types

[Python-Dev] Refcounting heap types [Python-Dev] Refcounting heap typesGuido van Rossum guido@python.org
Fri, 29 Mar 2002 18:16:06 -0500
> typeobject.c:PyType_GenericAlloc has this:
> 
> 	if (type->tp_flags & Py_TPFLAGS_HEAPTYPE)
> 		Py_INCREF(type);
> 
> Where is the corresponding DECREF?

At the bottom of subtype_dealloc():

	/* Can't reference self beyond this point */
	if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) {
		Py_DECREF(type);
	}

--Guido van Rossum (home page: http://www.python.org/~guido/)



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