mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
15 lines
311 B
Python
15 lines
311 B
Python
|
|
class C(object):
|
|
def __init__(self):
|
|
self._x = None
|
|
|
|
@property
|
|
def x(self):
|
|
"""I'm the 'x' property."""
|
|
return self._x
|
|
|
|
c = C()
|
|
print(c.x)
|
|
del <warning descr="Property 'x' cannot be deleted">c.x</warning>
|
|
|
|
<warning descr="Property 'x' cannot be set">c.<caret>x</warning> = 1 |