C++ object in PyObject*?

Stefan Behnel stefan_ml at behnel.de
Tue Mar 15 11:39:01 EDT 2011


Richard, 15.03.2011 16:16:
> I am wondering, what is the best way to write a Python module as an
> interface to a C++ class?

Cython.

http://cython.org

Here are a couple of tutorials for your use case:

http://docs.cython.org/src/userguide/wrapping_CPlusPlus.html

http://docs.cython.org/src/tutorial/clibraries.html

Stefan




More information about the Python-list mailing list