C++ version of the C Python API?

Michael L Torrie torriem at chem.byu.edu
Mon Oct 22 01:29:25 CEST 2007

Robert Dailey wrote:
> On 10/21/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:
>> No, I literally meant that the Python C API is object-oriented.
>> You don't need an object-oriented language to write object-oriented
>> code.
> I disagree with this statement. C is not an object oriented language,
> and I've seen attempts to make it somewhat object oriented, however it
> failed miserably in readability and manageability overhead. However,
> this isn't the place to discuss such a thing so I've got nothing more
> to say than that.

Guess you haven't programmed in GTK+ on C, then.  Very heavy in
object-oriented programmin.  C++'s OOP stuff is just pure syntactic
sugar, nothing more, nothing less.

Python's OO nature is a bit deeper, since we're talking a dynamic
language.  Scheme, another dynamic language, is not inherently OO or
non-OO.  You can use it in either fashion.

> I do appreciate you taking the time to respond to my inquiry and offer
> a few C++ wrapper API's for the Python C API. Take care!

Any C++ version of the python API is by definition going to be a wrapper
around the C version.  Even the C version is a wrapper around the python
object model.

More information about the Python-list mailing list