Re: [Tutor] Linking with C programs

2005-09-27 Thread Michael Sparks
On Tuesday 27 September 2005 14:49, Matt Williams wrote: > Could someone explain how, in very general terms, one would use python > to wrap some C libraries/ API. > > 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 - b

Re: [Tutor] Linking with C programs

2005-09-27 Thread Kent Johnson
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: h

Re: [Tutor] Linking with C programs

2005-09-27 Thread Gabriel Farrell
You can read some of what Guido has to say about Python and C at http://python.org/doc/essays/omg-darpa-mcc-position.html and see SWIG documentation (a few pertain to Python) at http://www.swig.org/doc.html gsf On Tue, Sep 27, 2005 at 08:41:31AM -0600, Eric Walker wrote: > There is a program cal

Re: [Tutor] Linking with C programs

2005-09-27 Thread Eric Walker
There is a program called swig. this generates python interfaces to external C/C++ libraries. I never used it as I am a very new python programmer but I took the Mark Lutz class and he pushes it. Python Newbie On Tuesday 27 September 2005 07:49 am, Matt Williams wrote: > Dear List, > > Cou

[Tutor] Linking with C programs

2005-09-27 Thread Matt Williams
Dear List, Could someone explain how, in very general terms, one would use python to wrap some C libraries/ API. 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