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.