[python] Exported class as mixin
14 Apr
2009
14 Apr
'09
5:44 a.m.
Hi, I wonder if anyone can give me a hand with this problem here: I've got exported class: class_<MyInterface>( "MyInterface" ) ... And I've got class in Python: class ABC(object): ... I am doing some processing of the class definition in Python and want to be able to do the following (clazz here is ABC: clazz.__bases__ = (MyInterface,) + clazz.__bases__ I am getting following error: TypeError: __bases__ assignment: 'MyInterface' deallocator differs from 'object' I can add mixins defined in Python fine. Only mixins exported from C++ giving me a problem. Any advise? Gennadiy
5693
Age (days ago)
5693
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gennadiy Rozental