Home
last modified time | relevance | path

Searched refs:fget (Results 1 – 16 of 16) sorted by relevance

/third_party/python/Lib/
Dtypes.py166 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 …]
Dinspect.py528 if isinstance(v, types.DynamicClassAttribute) and v.fget is not None:
700 func = obj.fget
Dpydoc.py129 func = obj.fget
/third_party/python/Objects/clinic/
Ddescrobject.c.h68 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/
Ddescrobject.c1722 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/
Ddescriptor.rst944 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/
Dpydocfodder.py117 A_property = property(fdel=_delx, fget=_getx, fset=_setx,
Dtest_abc.py232 def __init__(self, fget, fset=None): argument
233 self._fget = fget
Dtest_enum.py125 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)
Dtest_pydoc.py1195 self.assertEqual(self._get_summary_line(property.fget), "fget")
Dtest_builtin.py1537 __dict__ = property(fget=getDict)
Dtest_descr.py2277 self.assertIs(raw.fget, C.__dict__['getx'])
/third_party/protobuf/objectivec/DevTools/
Dpddm.py477 captured_lines = SourceFile.SectionBase.lines.fget(self)
/third_party/python/Doc/library/
Dtypes.rst458 .. function:: DynamicClassAttribute(fget=None, fset=None, fdel=None, doc=None)
Dfunctions.rst1417 .. 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/
DHISTORY24057 - 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