This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Byron
Recipients Byron, georg.brandl
Date 2009-10-02.17:57:34
SpamBayes Score 2.631556e-05
Marked as misclassified No
Message-id <1254506255.78.0.0495727959907.issue7036@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-10-02 17:57:35Byronsetrecipients: + Byron, georg.brandl
2009-10-02 17:57:35Byronsetmessageid: <1254506255.78.0.0495727959907.issue7036@psf.upfronthosting.co.za>
2009-10-02 17:57:34Byronlinkissue7036 messages
2009-10-02 17:57:34Byroncreate