Boost logo

Boost Users :

Subject: [Boost-users] [python] Exported class as mixin
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-04-14 01:44:56


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net