¡@

Home 

python Programming Glossary: self._age

python properties and inheritance

http://stackoverflow.com/questions/237432/python-properties-and-inheritance

doc self.prop.__doc__ class C object def __init__ self self._age None @property def age self My age return self._age @setter.. self self._age None @property def age self My age return self._age @setter age def age self n self._age n share improve this..

Python name mangling: When in doubt, do what?

http://stackoverflow.com/questions/7456807/python-name-mangling-when-in-doubt-do-what

Person object def __init__ self name age self.name name self._age age if age 0 else 0 @property def age self return self._age.. age if age 0 else 0 @property def age self return self._age @age.setter def age self age if age 0 self._age age else self._age.. return self._age @age.setter def age self age if age 0 self._age age else self._age 0 What about the double underscore Well it..