[Python-Dev] New type objects and PyObject_New

Martin v. Loewis martin@v.loewis.de
09 Apr 2002 22:19:04 +0200

"Thomas Heller" <thomas.heller@ion-tof.com> writes:

> IIUC, PyObject_New doesn't call the tp_new, tp_alloc, and tp_init slots.
> So, the new object probably will be in an invalid state, may be
> allocated by an allocator not compatible with the tp_dealloc slot?

I see. However, how do you implement tp_new if PyObject_New went away?