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