blob: 7a94d542b0cfc58e8e9e6fcf554ebfef5d20ca54 [file]
class Foo(object):
attr = 'baz'
__slots__ = [<warning descr="'attr' in __slots__ conflicts with class variable">'attr'</warning>, 'bar']
Foo.attr = 'spam'
print(Foo.attr)
foo = Foo()
<warning descr="'Foo' object attribute 'attr' is read-only">foo.attr</warning> = 'spam'
print(foo.attr)