[Pyrex] externs for python base types

Robert Bradshaw robertwb at math.washington.edu
Wed Nov 7 21:55:04 CET 2007


Cython comes bundled with a list of such files. See

http://cython.org/hg/cython-package/file/82c24a21bc9a/Includes/

Of course, more could be done with this.

- Robert

On Nov 7, 2007, at 12:28 PM, David McNab wrote:

> Hi,
>
> Does anyone have a .pxi header or a .pyx file containing 'cdef extern
> from' blocks for python base types, such as list, tuple, str etc?
>
> I want to create (amongst other things) a Pyrex extension type
> subclassing from 'list'.
>
> While I'm on the subject, has there been any further thought about
> standardising a header collection for Pyrex/Cython distros? I'm still
> not completely happy with the idea of everyone having to roll their  
> own
> headers.
>
> IMHO, the ideal would be for Pyrex to have a hardwired default .pxi
> header search path, such as:
>   ['.', '~/.pyrex/include', '/usr/share/pyrex/include']
>
>
> Cheers
> David
>
>
>
>
> _______________________________________________
> Pyrex mailing list
> Pyrex at lists.copyleft.no
> http://lists.copyleft.no/mailman/listinfo/pyrex




More information about the Pyrex mailing list