C Module question

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Nov 10 08:55:41 EST 2008


On Mon, 10 Nov 2008 05:44:44 -0800, boblatest at googlemail.com wrote:

> All in all I must say that implementing a C extension is a piece of
> cake. Had I known that it was this straightforward I wouldn't have asked
> my questions in the first place. Making the whole thing more robust will
> be a bit more difficult, and I need to find out how to deal with
> ressources that are dynamically allocated on the C side.
> 
> But that should be easy, and I'll just keep all the Python OO and
> Exceptions stuff in the wrapper and call my C stuff from there in a more
> or less straightforward C manner.

Then you might considering the `ctypes` module to call your C stuff.  
This way it is easier to build the extension and it is also independent 
from the Python version.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list