Consider this following code:
class Class:
def __init__(self):
self._value = False
def GetValue(self):
return self._value
def SetValue(self, val):
self._value = val
Value = property(GetValue, SetValue)
c = Class()
print c._value, c.Value
False False
c.Value = True
print c._value, c.Value
False True
Why isn't the property calling my function ? (I am running Python 2.6.5 on windows)