[Pyrex] C-API implementation in Pyrex 0.9.6

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Oct 13 22:14:49 CEST 2007


Another couple of reasons for keeping the .c files self-contained:

* The .pyx files can be processed in any order. Otherwise,
if foo.pyx cimported from spam.pxd, you would have to
process spam.pyx before compiling the .c file generated
from foo.pyx. This would be an odd sort of dependency.

* It avoids any problems with modules that cimport from
each other. Otherwise you could end up with two .h files
that tried to #include each other, which would be quite
a bad thing.

--
Greg



More information about the Pyrex mailing list