[Pyrex] C-API implementation in Pyrex 0.9.6

Stefan Behnel stefan_ml at behnel.de
Fri Oct 12 10:25:50 CEST 2007


Greg Ewing wrote:
> You can do that by declaring fast_gcd in a .pxd file, e.g.
> 
>    # arith.pxd
>    cdef int fast_gcd(int, int)
> 
>    # arith.pyx
>    cdef int fast_gcd(int a, int b):
>      ...

Is that black magic or just a naming convention?

Stefan




More information about the Pyrex mailing list