class Foo:
__slots__ = ('bar', '')
def __init__(self, bar):
self.bar = bar
self.setup()
def setup(self):
pass
class Foo:
__slots__ = ('bar',)
def __init__(self, bar):
self.bar = bar
self.setup()
def setup(self):
pass
Used when an invalid (non-string) object occurs in __slots__
.