class Point def __init__ self 10 self setx def setx self self def getx

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
class Point:
def __init__(self, x=10):
self.setx(x)
def setx(self, x=0):
self.x = x
def getx(self):
return self.x
def delx(self):
del self.x
x = property(getx, setx, delx, "I'm the 'x' property.")
q = Point()
q.x += 10
q.get()