I have the following code in Python 2.7:
>>> class A(object):
...     pass
... 
>>> class B(A):
...     __slots__ = tuple()
... 
>>> b = B()
>>> b.x = 1
>>> b.y = 2
Does that mean the __slots__ in the subclass B is basically useless, because it does not prevent dynamic attribute creation?
 
    