inheritance, multiple inheritance and the weaklist and instance dictionaries

Carl Banks pavlovevidence at gmail.com
Wed Feb 9 23:02:26 CET 2011


On Feb 9, 1:14 pm, Rouslan Korneychuk <rousl... at msn.com> wrote:
> Each Python class is a wrapper for a C++ class.

Also, if you want my opinion (you probably don't after you've already
gone to so much trouble, but here it is anyway):

It's not worth it to mimic the C++ type hierarchy in Python.  Just
wrap each C++ class, regardless of its ancestry, in a Python class
with only object as base.


Carl Banks



More information about the Python-list mailing list