[Pyrex] cimport: include path and standard headers

William Stein wstein at gmail.com
Wed Oct 10 04:25:08 CEST 2007


On 10/9/07, Robert Bradshaw <robertwb at math.washington.edu> wrote:
> >> As I hand-write a lot of 'cdef extern from...' blocks, I'm
> >> wondering if
> >> we've got dozens of other folks doing the same. It makes about as
> >> much
> >> sense as the world of C developers all writing their own version of
> >> stdio.h, or Python developers all writing their own versions of
> >> 'sys',
> >> 'os' etc.
> >
> > Nice idea. +1.
>
> I like this idea too, but would like to make it explicit to import
> things. As a start, SAGE is distributed with .pxi files for (almost?)
> the entire Python C/API.

I wrote these, and I think they cover the entire Python C/API.  It
would make a lot of sense to distribute them.  They are in this
directory, if you want to look at them:

http://www.sagemath.org/hg/sage-main/file/b663cbb712d1/sage/ext/

William

 -- William



More information about the Pyrex mailing list