[Pyrex] PyTypeObject extern declaration

Simon Burton simon at arrowtheory.com
Sat Oct 15 05:56:39 CEST 2005



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


Any ideas ?

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