source: TI12-security/trunk/NDGSecurity/python/Tests/property.py @ 7080

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/Tests/property.py@7080
Revision 7080, 265 bytes checked in by pjkersha, 9 years ago (diff)
  • Property svn:keywords set to Id
Line 
1class C(object):
2    def __init__(self):
3        self.__name = None
4
5    @property
6    def name(self):
7        return self.__name
8
9    @name.setter
10    def name(self, value):
11        self.__name = value
12
13    @name.deleter
14    def name(self):
15        del self.__name
Note: See TracBrowser for help on using the repository browser.