mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
13 lines
187 B
Python
13 lines
187 B
Python
class B(object):
|
|
attr = 'baz'
|
|
__slots__ = ['f', 'b', '__dict__']
|
|
|
|
class C(B):
|
|
__slots__ = ['attr', 'bar']
|
|
|
|
C.attr = 'spam'
|
|
print(C.attr)
|
|
|
|
c = C()
|
|
c.attr = 'spam'
|
|
print(c.attr) |