Message93451
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. |
|
Date |
User |
Action |
Args |
2009-10-02 17:57:35 | Byron | set | recipients:
+ Byron, georg.brandl |
2009-10-02 17:57:35 | Byron | set | messageid: <1254506255.78.0.0495727959907.issue7036@psf.upfronthosting.co.za> |
2009-10-02 17:57:34 | Byron | link | issue7036 messages |
2009-10-02 17:57:34 | Byron | create | |
|