PEP 235: role of PyType_GenericNew()
Ralf Juengling
juenglin at informatik.uni-freiburg.de
Wed Apr 3 09:25:19 EST 2002
Hi,
I'm wondering whether the current implementation of PyType_GenericNew
does, what it's supposed to do.
In typeobject.c it reads:
PyObject *
PyType_GenericNew(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
return type->tp_alloc(type, 0);
}
Thus, only the allocator of the passed type is called.
Shouldn't the base classes allocators be called as well?
Cheers,
Ralf
More information about the Python-list
mailing list