Stefan Behnel wrote:
> Harald Schilly wrote:
>> On Tue, Oct 6, 2009 at 11:14, Stefan Behnel wrote:
>>> Do you want to link your C code into a Python module, or rather embed the
>>> CPython Interpreter in a C program and use your Cython module there?
>> hello, thanks for the answers so far. What I want to do is to call a
>> Python program from an existing C program.
> 
> Look at the Demos/embed directory in the Cython source distribution.

... although that won't tell you how to access the public C-API of a module
from C code when the module is imported by an embedded CPython runtime.

I've never done something like that before. I guess it's not hard, but I
don't have any shrink-wrapped example code either.

Anyone?

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to