mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 21:52:48 +07:00
16 lines
221 B
Python
16 lines
221 B
Python
class Test(object):
|
|
__slots__ = ('_x',)
|
|
|
|
def __init__(self):
|
|
self._x = 1
|
|
|
|
@property
|
|
def x(self):
|
|
return self._x
|
|
|
|
@x.setter
|
|
def x(self, value):
|
|
self._x = value
|
|
|
|
|
|
Test().x = 2 |