TypeError: multiple bases have instance lay-out conflict

robin and jim robinjim at earthlink.net
Sun Aug 18 13:18:56 EDT 2002


The following 2 class definitions:

class Spam(object):
   __slots__ = ['notes']

class Eggs(Spam, dict):
   pass

produce the following error concerning class Eggs:

TypeError: multiple bases have instance lay-out conflict

Could someone explain this error message and why the above Eggs class
definition is prohibited.

Thanks.





More information about the Python-list mailing list