class Test object def __init__ self self __test None def get_test self

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
class Test(object):
def __init__(self):
self.__test = None
def get_test(self):
return self.__test
def set_test(self, value):
self.__test = value
test = property(fget=get_test, fset=set_test)