Sebastian Thiel <[email protected]> added the comment:
Additional Information:
"multiple bases have instance lay-out conflict"
This happens only if I add __slots__ to the bases so that there is no
dict. I can reproduce this easily by indirectly deriving a class from
two bases that both define the same slot.
It only happens if all classes define __slots__ so there is no dict.
class ac( object ):
__slots__ = "a"
class bc( ac ):
__slots__ = "b"
class cc( ac ):
__slots__ = "c"
class cannotbecreated( bc,cc ):
pass
# raises an error.
Actually I don't know whether this is intended or if it is related to
the documentation section I pointed at.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7036>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com