Matt Williams wrote: > Dear List, > > Could someone explain how, in very general terms, one would use python > to wrap some C libraries/ API.
The "Extending and Embedding" document is the official doc: http://docs.python.org/ext/ext.html In addition to SWIG I have heard good things about SIP: http://directory.fsf.org/devel/prog/cpp/Python-SIP.html ctypes is another approach which lets you call C libraries directly from Python: http://starship.python.net/crew/theller/ctypes/ Kent > > I ask because there are a few bits of C software that look quite > interesting, and I know that Python can be used to wrap the C - but how > does it work? > > Thanks, > > Matt > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor