/third_party/python/Lib/ |
D | types.py | 166 def __init__(self, fget=None, fset=None, fdel=None, doc=None): argument 167 self.fget = fget 171 self.__doc__ = doc or fget.__doc__ 174 self.__isabstractmethod__ = bool(getattr(fget, '__isabstractmethod__', False)) 181 elif self.fget is None: 183 return self.fget(instance) 195 def getter(self, fget): argument 196 fdoc = fget.__doc__ if self.overwrite_doc else None 197 result = type(self)(fget, self.fset, self.fdel, fdoc or self.__doc__) 202 result = type(self)(self.fget, fset, self.fdel, self.__doc__) [all …]
|
D | inspect.py | 528 if isinstance(v, types.DynamicClassAttribute) and v.fget is not None: 700 func = obj.fget
|
D | pydoc.py | 129 func = obj.fget
|
/third_party/python/Objects/clinic/ |
D | descrobject.c.h | 68 property_init_impl(propertyobject *self, PyObject *fget, PyObject *fset, 81 PyObject *fget = NULL; in property_init() local 94 fget = fastargs[0]; in property_init() 113 return_value = property_init_impl((propertyobject *)self, fget, fset, fdel, doc); in property_init()
|
/third_party/python/Objects/ |
D | descrobject.c | 1722 property_init_impl(propertyobject *self, PyObject *fget, PyObject *fset, in property_init_impl() argument 1726 if (fget == Py_None) in property_init_impl() 1727 fget = NULL; in property_init_impl() 1733 Py_XINCREF(fget); in property_init_impl() 1738 Py_XSETREF(self->prop_get, fget); in property_init_impl() 1747 if ((doc == NULL || doc == Py_None) && fget != NULL) { in property_init_impl() 1750 int rc = _PyObject_LookupAttrId(fget, &PyId___doc__, &get_doc); in property_init_impl()
|
/third_party/python/Doc/howto/ |
D | descriptor.rst | 944 property(fget=None, fset=None, fdel=None, doc=None) -> property 978 def __init__(self, fget=None, fset=None, fdel=None, doc=None): 979 self.fget = fget 982 if doc is None and fget is not None: 983 doc = fget.__doc__ 993 if self.fget is None: 995 return self.fget(obj) 1007 def getter(self, fget): 1008 prop = type(self)(fget, self.fset, self.fdel, self.__doc__) 1013 prop = type(self)(self.fget, fset, self.fdel, self.__doc__) [all …]
|
/third_party/python/Lib/test/ |
D | pydocfodder.py | 117 A_property = property(fdel=_delx, fget=_getx, fset=_setx,
|
D | test_abc.py | 232 def __init__(self, fget, fset=None): argument 233 self._fget = fget
|
D | test_enum.py | 125 def __init__(self, fget=None, fset=None, fdel=None, doc=None): argument 126 self.fget = fget 129 if doc is None and fget is not None: 130 doc = fget.__doc__ 134 return self.fget(ownerclass)
|
D | test_pydoc.py | 1195 self.assertEqual(self._get_summary_line(property.fget), "fget")
|
D | test_builtin.py | 1537 __dict__ = property(fget=getDict)
|
D | test_descr.py | 2277 self.assertIs(raw.fget, C.__dict__['getx'])
|
/third_party/protobuf/objectivec/DevTools/ |
D | pddm.py | 477 captured_lines = SourceFile.SectionBase.lines.fget(self)
|
/third_party/python/Doc/library/ |
D | types.rst | 458 .. function:: DynamicClassAttribute(fget=None, fset=None, fdel=None, doc=None)
|
D | functions.rst | 1417 .. class:: property(fget=None, fset=None, fdel=None, doc=None) 1421 *fget* is a function for getting an attribute value. *fset* is a function 1446 property will copy *fget*'s docstring (if it exists). This makes it possible to 1488 The returned property object also has the attributes ``fget``, ``fset``, and
|
/third_party/python/Misc/ |
D | HISTORY | 24057 - property() now takes 4 keyword arguments: fget, fset, fdel and doc. 24058 These map to read-only attributes 'fget', 'fset', 'fdel', and '__doc__' 24059 in the constructed property object. fget, fset and fdel weren't
|