C++ version of the C Python API?

"Martin v. Löwis" martin at v.loewis.de
Sun Oct 21 19:06:25 CEST 2007


> Is there a C++ version of the C Python API packaged with python 2.5?

Stargaming has already mentioned the fine points; the first answer is:
yes, the API packaged python 2.5 can be used with C++. It is a C++
version of the same API as it adds proper extern "C" declarations around
all prototypes, and it was specifically cleaned up (ten years ago)
to work with C++.

This API does not make use of many of the C++ features, including
classes, templates, or overloading.

Regards,
Martin



More information about the Python-list mailing list