¡@

Home 

python Programming Glossary: self.__doc__

Subclassing Python's `property`

http://stackoverflow.com/questions/12405087/subclassing-pythons-property

fdel if doc is None and fget is not None doc fget.__doc__ self.__doc__ doc def __get__ self obj objtype None if obj is None return.. getter self fget return type self fget self.fset self.fdel self.__doc__ def setter self fset return type self self.fget fset self.fdel.. setter self fset return type self self.fget fset self.fdel self.__doc__ def deleter self fdel return type self self.fget self.fset fdel..

Python, how does decorator @property work?

http://stackoverflow.com/questions/17330160/python-how-does-decorator-property-work

fdel if doc is None and fget is not None doc fget.__doc__ self.__doc__ doc def __get__ self obj objtype None if obj is None return.. getter self fget return type self fget self.fset self.fdel self.__doc__ def setter self fset return type self self.fget fset self.fdel.. setter self fset return type self self.fget fset self.fdel self.__doc__ def deleter self fdel return type self self.fget self.fset fdel..

Python - Lazy loading of class attributes

http://stackoverflow.com/questions/17486104/python-lazy-loading-of-class-attributes

name or func.__name__ self.__module__ func.__module__ self.__doc__ doc or func.__doc__ self.func func def __get__ self obj type..