Georg Brandl added the comment:
As far as I can tell, the text is still correct:
>>> class a(object): __slots__ = 'a'
>>> class b(a): __slots__ = 'a'
works without raising TypeError.
I've nevertheless enhanced the docs a bit in r75610.
--
resolution: -> fixed
status: open -> closed
Sebastian Thiel 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 o
New submission from Sebastian Thiel :
The section starting with:
"If a class defines a slot also defined in a base class, the instance
variable
defined by the base class slot is inaccessible rendering the meaning
of the
program undefined. [...]"
would need to be revisited as it claims that a