On 02/09/2011 05:02 PM, Carl Banks wrote:
On Feb 9, 1:14 pm, Rouslan Korneychuk<rousl...@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):

No, your opinion is quite welcome.


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.

I kind-of already did. The issue only comes up when multiply-inheriting from types that have a different combination of the weaklist and instance dictionaries. I don't have to support this particular feature.

As for the worth, this is something I'm working on in my spare time as a hobby and I enjoy a good challenge.



--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to