Home | Trees | Indices | Help |
|
---|
|
property(fget=None, fset=None, fdel=None, doc=None) -> property attribute fget is a function to be used for getting an attribute value, and likewise fset is a function for setting, and fdel a function for del'ing, an attribute. Typical use is to define a managed attribute x: class C(object): def getx(self): return self.__x def setx(self, value): self.__x = value def delx(self): del self.__x x = property(getx, setx, delx, "I'm the 'x' property.")
|
|||
|
|||
value |
|
||
|
|||
property attribute |
|
||
a new object with type S, a subtype of T |
|
||
|
|||
Inherited from |
|
|||
fdel | |||
fget | |||
fset | |||
Inherited from |
|
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Apr 13 17:59:23 2011 | http://epydoc.sourceforge.net |