[Pyrex] Help for public Python extension types.

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Jun 28 03:01:01 CEST 2008


Robert Bradshaw wrote:

> Here you're declaring a new class called X in your pyx file. What you  
> want to do is
> 
>      from test cimport X

No, he doesn't, because test.pxd and test.pyx are supposed
to be the declaration and implementation parts of the same
module.

The 'cimport test' is redundant, BTW, but it shouldn't do
any harm.

-- 
Greg



More information about the Pyrex mailing list