Re: Opinion on Pyrex
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Opinion on Pyrex

From: Robert Kern <rkern@ucsd.edu>
Date: Fri Sep 30 2005 - 21:18:30 CEST

Carl wrote:
> I have recently started to use Pyrex and am amazed by it's useability.
>
> Are there any alternatives to Pyrex?
>
> One thing that I haven't figured out is how to embed pure C/C++ source code
> into Pyrex. For example, if you have a bunch of C files that you want to
> use together with some Python code snippets, how do you practically achieve
> this using Pyrex? I have come to the conclusion that it is not possible
> without some rewriting and adaptation (translation) of available C source
> code (if you don't want to compile and link all your C source into a
> statical or dynamical library).

I always just include those C files as sources for the Extension along
with the Pyrex-generated file.

-- 
Robert Kern
rkern@ucsd.edu
"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter
Received on Sat Oct 15 04:01:03 2005