[Python-Dev] Py_TPFLAGS_HEAPTYPE too overloaded

Hrvoje Niksic hrvoje.niksic at avl.com
Thu Jul 30 10:13:38 CEST 2009


Campbell Barton wrote:
> I'm not expert enough in this area to know if malloc'ing PyTypeObject
> and initializing has some other problems.

The only problem is that such types will be expected to be around 
forever - they are not reference-counted like heap types, so there is no 
mechanism to free them once they are no longer needed.


More information about the Python-Dev mailing list