Hello,

Can anyone tell why am I getting this error and how to work around this
problem.

>>> class Klass(object):
...     __slots__ = ( 'x' )
...
>>> class Klass1(object):
...     __slots__ = ( 'y' )
...
>>> class Klass(Klass, Klass1):
...     __slots__ = ( 'z' )
...
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
TypeError: multiple bases have instance lay-out conflict

I need to define slots in these classes and also need to inherit them in
Derived class.

Nitin


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

Reply via email to