[Pyrex] [PATCH] public C-API and Py_ssize_t support for 0.9.5.1a

Lenard Lindstrom len-l at telus.net
Thu Feb 15 01:57:38 UTC 2007


Greg Ewing wrote:
>
>
> It's been suggested that the .pxd file could be done
> away with and just have one definition in the .pyx file.
> But I'd prefer not to do that, because the .pxd file is
> useful for dependency tracking -- if you change the .pxd
> file, the interface may have changed, so you should
> recompile all the .pyx files that cimport it.
>
I wondered if the .pxd file could be automatically generated for 
functions and extension types marked as "shared" or something. But since 
one may want to include type declarations and external definitions from 
C libraries it's better to write the file manually.

-- 
Lenard Lindstrom
<len-l at telus.net>




More information about the Pyrex mailing list