Are there memory limits for external C modules?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Sat Jan 28 18:45:30 EST 2006


In <1138316171.607603.299130 at g49g2000cwa.googlegroups.com>,
david at quanterium.zzn.com 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



More information about the Python-list mailing list