C++ version of the C Python API?

Nicholas Bastin nick.bastin at gmail.com
Mon Oct 22 01:25:48 EDT 2007


On 10/21/07, Carl Banks <pavlovevidence at gmail.com> wrote:
> Now, a C++ API for CPython would necessarily be built on top of the C
> API, which carries some limitations relative to the OOP abilities of C++
> itself.

It wouldn't have to be, although it'd be much more of a maintenance
nightmare if it poked into the Python internals.

> But you shouldn't expect anything like the ability to freely inherit between
> C++ and Python classes.

You can do this with Boost.Python.

--
Nick



More information about the Python-list mailing list