[Pyrex] externs for python base types

David McNab david at rebirthing.co.nz
Wed Nov 7 21:28:46 CET 2007


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






More information about the Pyrex mailing list