Home
last modified time | relevance | path

Searched refs:fget (Results 1 – 22 of 22) 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/boost/boost/python/object/
Dclass.hpp37 char const* name, object const& fget, char const* docstr);
39 object const& fget, object const& fset, char const* docstr);
41 void add_static_property(char const* name, object const& fget);
42 void add_static_property(char const* name, object const& fget, object const& fset);
/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/boost/boost/python/
Dclass.hpp301 self& add_property(char const* name, Get fget, char const* docstr = 0) in add_property() argument
303 base::add_property(name, this->make_getter(fget), docstr); in add_property()
308 self& add_property(char const* name, Get fget, Set fset, char const* docstr = 0) in add_property() argument
311 name, this->make_getter(fget), this->make_setter(fset), docstr); in add_property()
316 self& add_static_property(char const* name, Get fget) in add_static_property() argument
318 base::add_static_property(name, object(fget)); in add_static_property()
323 self& add_static_property(char const* name, Get fget, Set fset) in add_static_property() argument
325 base::add_static_property(name, object(fget), object(fset)); in add_static_property()
/third_party/boost/libs/python/src/object/
Dclass.cpp617 char const* name, object const& fget, char const* docstr) in add_property() argument
621 …PyObject_CallFunction((PyObject*)&PyProperty_Type, const_cast<char*>("Osss"), fget.ptr(), (char*)N… in add_property()
627 char const* name, object const& fget, object const& fset, char const* docstr) in add_property() argument
631 …PyObject_CallFunction((PyObject*)&PyProperty_Type, const_cast<char*>("OOss"), fget.ptr(), fset.ptr… in add_property()
636 void class_base::add_static_property(char const* name, object const& fget) in add_static_property() argument
640 PyObject_CallFunction(static_data(), const_cast<char*>("O"), fget.ptr()) in add_static_property()
646 void class_base::add_static_property(char const* name, object const& fget, object const& fset) in add_static_property() argument
650 PyObject_CallFunction(static_data(), const_cast<char*>("OO"), fget.ptr(), fset.ptr())); in add_static_property()
/third_party/boost/libs/python/doc/reference/
Dclass.qbk87 void add_property(char const* name, Get const& fget, char const* doc=0);
90 char const* name, Get const& fget, Set const& fset, char const* doc=0);
93 void add_static_property(char const* name, Get const& fget);
95 void add_static_property(char const* name, Get const& fget, Set const& fset);
198 void add_property(char const* name, Get const& fget, char const* doc=0);
201 char const* name, Get const& fget, Set const& fset, char const* doc=0);
205 …/2.2.2/descrintro.html#property property] class instance, passing `object(fget)` (and `object(fset…
211 void add_static_property(char const* name, Get const& fget);
213 void add_static_property(char const* name, Get const& fget, Set const& fset);
217 …[[Effects][Creates a Boost.Python.StaticProperty object, passing `object(fget)` (and `object(fset)…
/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/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/libnl/python/netlink/
Dutil.py88 d = getattr(value.fget, 'formatinfo', dict())
/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/flatbuffers/tests/
Dpy_flexbuffers_test.py290 prop.fget(root)
318 prop.fget(root)
348 prop.fget(root)
467 prop.fget(root)
/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.rst1409 .. class:: property(fget=None, fset=None, fdel=None, doc=None)
1413 *fget* is a function for getting an attribute value. *fset* is a function
1438 property will copy *fget*'s docstring (if it exists). This makes it possible to
1480 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