[Pyrex] Why was "pxd" added to Pyrex?
Edward C. Jones
edcjones at erols.com
Thu Oct 28 04:27:58 CEST 2004
Here are three small files:
example.h:
typedef struct {
int iVal;
} Example;
------------------------
pyExample.pxd:
cdef extern from "example.h":
ctypedef struct Example:
int iVal
------------------------
pyExample.pyx:
cdef class Example:
pass
------------------------
If I run "pyrexc pyExample.pyx", I get the error message:
.../pyExample.pyx:3:5: 'Example' redeclared
So pyrex grabbed the "pxd" file under the table. This is very unPythonic.
Also very un-C-like.
Another weirdness is in the Landscaping example in the docs:
cimport Shrubbing
import Shrubbing
Large features in a language have large important purposes. What is the
purpose for the "pdx" stuff? Why is it designed the way that it is?
More information about the Pyrex
mailing list