[Pyrex] Newbie question
simon at arrowtheory.com
Fri Jul 1 10:13:00 CEST 2005
On Thu, 30 Jun 2005 08:57:00 +0000
philippe at philippecmartin.com wrote:
> I am very new to Pyrex.
> My ultimate goal is to give access to my product (99% Python, 1% C) through a
> C interface (.o, .lib, .a, ....) so external applications (we'll say written
> in C) can link to the lib and have access to my product.
> My understanding is that I can do this with Pyrex (under Linux _and_ Windows):
> [EXTERN PROGRAM CODE]===>Link==> [PYREX GENERATED CODE] ==>Call==> [MY *.PYC]
> Q1) Am I correct ?
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).
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Ph. 61 02 6249 6940
More information about the Pyrex