Calling C or C++ Functions inside Python script

Chris Rebert clp2 at rebertia.com
Sat Jul 4 12:29:30 CEST 2009


On Sat, Jul 4, 2009 at 3:06 AM, Parikshat Dubey<parikshatdubey at gmail.com> 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.

Cheers,
Chris
-- 
http://blog.rebertia.com



More information about the Python-list mailing list