Re: Calling C or C++ Functions inside Python script

2009-07-04 Thread Pablo Torres N.
On Sat, Jul 4, 2009 at 05:06, Parikshat Dubey wrote: > Hi, > > Is this possible to call C functions(inbuilt or user defined) inside python > script.If yes, please illustrate how it can be done. > Thanks, > Parikshat Dubey >From http://www.swig.org : "SWIG is a software development tool that conn

Re: Calling C or C++ Functions inside Python script

2009-07-04 Thread Chris Rebert
On Sat, Jul 4, 2009 at 3:06 AM, Parikshat Dubey wrote: > Hi, > > Is this possible to call C functions(inbuilt or user defined) inside python > script.If yes, please illustrate how it can be done. The `ctypes` module: http://docs.python.org/library/ctypes.html Note: does not work w/ C++ directly.

Calling C or C++ Functions inside Python script

2009-07-04 Thread Parikshat Dubey
Hi, Is this possible to call C functions(inbuilt or user defined) inside python script.If yes, please illustrate how it can be done. Thanks, Parikshat Dubey -- -Fear not the path of truth, for the lack of people walking on it. Practice yourself, for heaven's sake, in little things; and