[Pyrex] PyTypeObject extern declaration
Simon Burton
simon at arrowtheory.com
Sat Oct 15 06:08:32 CEST 2005
On Sat, 15 Oct 2005 13:56:39 +1000
Simon Burton <simon at arrowtheory.com> wrote:
>
>
> cdef extern from "object.h":
> ctypedef class __builtin__.type [object PyTypeObject]:
> pass
>
> fails with runtime error:
> ValueError: __builtin__.type does not appear to be the correct type object
>
aha, this works:
cdef extern from "object.h":
ctypedef class __builtin__.type [object PyHeapTypeObject]:
pass
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
More information about the Pyrex
mailing list