[Pyrex] cdef public class bug/problems

Simon Burton simon at arrowtheory.com
Tue Nov 22 00:59:45 CET 2005


Encouraged by Lenard's recent achievements, a pyrex hacker is born !

(patch attached)

Simon.

On Mon, 21 Nov 2005 16:59:14 +0000
Simon Burton <simon at arrowtheory.com> wrote:

> 
> 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 
> 
> _______________________________________________
> Pyrex mailing list
> Pyrex at lists.copyleft.no
> http://lists.copyleft.no/mailman/listinfo/pyrex


-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: public_cclass.patch
Type: application/octet-stream
Size: 4037 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20051122/d4aee984/public_cclass.obj


More information about the Pyrex mailing list