Call C++ Function in Python

Martin v. Loewis martin at
Mon Aug 12 18:00:29 CEST 2002

arivu at (Arivazhagan) writes:

> We are planning to use python in our c++ Project. We have to invoke a
> C++ function from Python. can any one help?

I recommend you read the "extending and embedding" tutorial:

You'll have to write an extension module. Since you will need to
compile that with the C++ compiler, please make sure to use extern "C"
on the module init function.


More information about the Python-list mailing list