In <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:

> I was able to modify my C code so that instead of being a Python
> module, it runs as a standalone binary, and it works as it should.
> Calling it with os.spawn* works.  The two versions are essentially the
> same, the primary differences being the necessary difference in how
> arguments and return values are handled.
> 
> This will work if necessary, but I would think having it as a Python
> module would be slightly more elegant and efficient since we avoid the
> overhead of setting up new processes.

Mybe you can build your C code as shared library and use `ctypes` to call
the functions from Python:

  http://starship.python.net/crew/theller/ctypes/

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to