[Pyrex] Newbie question

Andreas Kostyrka andreas at kostyrka.org
Fri Jul 1 20:51:37 CEST 2005


Am Freitag, den 01.07.2005, 13:38 +1200 schrieb Greg Ewing:
> Simon Burton wrote:
> 
> > Yes. "cdef" functions in your pyrex code are regular c functions.
> > However, you may need to write a ".h" file for these (pyrex does not).
> 
> You can get Pyrex to generate a .h for you by declaring
> the function 'public'. See the Public Declarations
> section of the Language Overview.

Actually it works like a charm. Although the generated functions expect
that the GIL is locked. (Which can be sometimes a bit of a problem when
the C/C++ code has been called from python via certain wrappers). I've
done this for a quite big app, which got enhanced via Python/Pyrex.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20050701/9d8c7724/attachment.bin


More information about the Pyrex mailing list