[Pyrex] C-API implementation in Pyrex 0.9.6

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


Stefan Behnel wrote:
> On the
> other hand, Pyrex distinguishes between a C code API and a Pyrex code API. I
> don't see why.

I prefer it if the generated C code is self-contained when
not interfacing with non-Pyrex code. If cimporting relied
on .h files, there would be more files to keep track of
and issues of making sure the C compiler can find the .h
files, etc.

Also there are two different ways of connecting functions with
external C code now, "public" and "api". Somehow you have to
say which you want. You may not want the overhead of the
api mechanism when you're not going to use it.

--
Greg



More information about the Pyrex mailing list