[Pyrex] cdef public class bug/problems
Simon Burton
simon at arrowtheory.com
Mon Nov 21 17:59:14 CET 2005
A cdef public extern class without cdef attributes causes pyrex
to produce a .pxi file with a syntax error: it defines an empty
cdef extern class but does not use a "pass".
foo.pyx:
cdef public class Foo [ object FooObj, type FooType ]:
pass
produces foo.pxi:
cdef extern class foo.Foo:
which is a syntax error.
Also, I just don't see how this mechanism can work. It looks totally broken.
Don't we need to append the FooObj to the declaration in foo.pxi ?
And shouldn't it all be inside a ' cdef extern from "foo.h" ' ?
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