C++ version of the C Python API?

Robert Dailey rcdailey at gmail.com
Sun Oct 21 15:50:37 EDT 2007


On 10/21/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> > 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
>

Well C++ implicitly includes OOP since that is the foundation of the
language. I was more or less asking if there was an object oriented
version of the Python embedded API or perhaps an OO wrapper. However
it doesn't seem that way, so I may have to make my own.

Thanks for the responses.



More information about the Python-list mailing list