[Python-Dev] New type objects and PyObject_New
David Abrahams
David Abrahams" <david.abrahams@rcn.com
Tue, 9 Apr 2002 18:39:55 -0500
----- Original Message -----
From: "David Abrahams" <david.abrahams@rcn.com>
To: "Guido van Rossum" <guido@python.org>
Cc: "Thomas Heller" <thomas.heller@ion-tof.com>; <python-dev@python.org>
Sent: Tuesday, April 09, 2002 6:33 PM
Subject: Re: [Python-Dev] New type objects and PyObject_New
> Uh, never mind, I'm actually doing this:
>
> // Don't call the type directly to do the construction, since
> // that would require the registration of an appropriate
> // __init__ function.
> PyObject* raw_result =
m_class_object->tp_alloc(m_class_object,
> 0);
And no, that's not an emoticon.