[Cython] pxi or pxd for numpy?

Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 1 00:24:37 CEST 2008


On Thu, Apr 24, 2008 at 1:16 PM, Brian Granger <ellisonbg.net at gmail.com> wrote:

> The only way I can get all this to work is the rename numpy.pxi ->
> c_numpy.pxd and use cimport.  Then all works well.  But, this seems to
> go against the recommendation that pxd files should not be used for
> this purpose.

What recommendation are you talking about? Using a pxd file
to provide a namespace is fine as far as I'm concerned.
It's one of the things they were invented for.

-- 
Greg


More information about the Cython-dev mailing list