Re: [Tutor] Some help with properties and accessor functions....

2006-04-19 Thread Alan Gauld
class SOFileIndexRecord(object): def __init__(self, so): self._so=so def _get_code(self): return self._so.code def _set_code(self, value): self._so.code=value testCode=property(_get_code, _set_code) # What does this do? It says that testCode is a property o

[Tutor] Some help with properties and accessor functions....

2006-04-19 Thread Mark True
class SOFileIndexRecord(object):    def __init__(self, so):    self._so=so   def _get_code(self):    return self._so.code    def _set_code(self, value):    self._so.code=value     testCode=property(_get_code, _set_code) # What does this do?   def _get_fileName(self):    re