Home
last modified time | relevance | path

Searched refs:__get__ (Results 1 – 25 of 34) sorted by relevance

12

/third_party/python/Lib/ctypes/test/
Dtest_struct_fields.py66 MyCStruct.field.__get__, 'wrong type self', 42)
71 MyCUnion.field.__get__, 'wrong type self', 42)
/third_party/python/Doc/howto/
Ddescriptor.rst46 from its :meth:`__get__` method:
51 def __get__(self, obj, objtype=None):
75 finds a descriptor instance, recognized by its ``__get__`` method, and calls
99 def __get__(self, obj, objtype=None):
123 reveals the purpose of the parameters to :meth:`__get__`. The *self*
126 lets the :meth:`__get__` method learn the target directory. The *objtype*
136 descriptor's :meth:`__get__` and :meth:`__set__` methods are triggered when
151 def __get__(self, obj, objtype=None):
169 self.age += 1 # Calls both __get__() and __set__()
235 def __get__(self, obj, objtype=None):
[all …]
/third_party/python/Tools/c-analyzer/c_analyzer/common/
Dutil.py106 def __get__(self, obj, cls): member in Slot
168 self.getter = classmethod(value).__get__
176 def __get__(self, obj, cls): member in classonly
/third_party/python/Lib/
Dfunctools.py392 def __get__(self, obj, cls=None): member in partialmethod
408 result = self._make_unbound_method().__get__(obj, cls)
911 def __get__(self, obj, cls=None): member in singledispatchmethod
914 return method.__get__(obj, cls)(*args, **kwargs)
949 def __get__(self, instance, owner=None): member in cached_property
Dtypes.py171 def __get__(self, instance, ownerclass=None): member in DynamicClassAttribute
Dinspect.py1564 return type.__dict__['__mro__'].__get__(klass)
1595 class_dict = dict_attr.__get__(entry)["__dict__"]
D_pyio.py286 def __get__(self, obj, typ=None): member in DocDescriptor
/third_party/python/Lib/test/
Dtest_decorators.py284 def __get__(self, instance, owner): member in TestDecorators.test_wrapped_descriptor_inside_classmethod.Wrapper
285 bound_function = self.__wrapped__.__get__(instance, owner)
Dtest_descr.py520 setattr(it, key, self.dict[key].__get__(it, self))
1550 self.assertEqual(ff.__get__(0, int)(42), (int, 42))
1551 self.assertEqual(ff.__get__(0)(42), (int, 42))
1562 meth = classmethod(1).__get__(1)
1637 spam_cm.__get__(None, list)
1707 self.assertTrue(repr(C.foo.__get__(C())).startswith("<bound method "))
1717 def __get__(self, obj, type=None): member in ClassPropertiesAndMethods.test_compattr.C.computed_attribute
1971 self.assertTrue(repr(C.foo.__get__(C(1))).startswith("<bound method "))
1993 set_add.__get__(0)
2068 def __get__(self, obj, owner): member in ClassPropertiesAndMethods.test_special_method_lookup.SpecialDescr
[all …]
Dtest_module.py283 def __get__(self, o, t): member in ModuleTests.test_descriptor_errors_propagate.Descr
Dtest_pydoc.py1246 def __get__(self, obj, cls): member in TestDescriptions.test_custom_non_data_descriptor.Descr
1271 def __get__(self, obj, cls): member in TestDescriptions.test_custom_data_descriptor.Descr
Dtest_inspect.py793 def __get__(*args): member in _BrokenDataDescriptor
807 def __get__(*args): member in _BrokenMethodDescriptor
1286 def __get__(self, value, type=None): pass member in TestIsDataDescriptor.test_custom_descriptors.NonDataDescriptor
1738 def __get__(*_): member in TestGetattrStatic.test_descriptor_raises_AttributeError.descriptor
1824 def __get__(self, instance, owner): member in TestGetattrStatic.test_descriptor.descriptor
1843 def __get__(self, instance, owner): member in TestGetattrStatic.test_metaclass_with_descriptor.descriptor
/third_party/python/Tools/demo/
Deiffel.py81 def __get__(self, obj, cls=None): member in EiffelDescriptor
/third_party/boost/tools/build/src/util/
D__init__.py177 def __get__(self, instance, type): member in cached
/third_party/python/Lib/unittest/test/testmock/
Dtesthelpers.py505 def __get__(self, obj, type_): member in SpecSignatureTest.test_spec_has_descriptor_returning_function.CrazyDescriptor
767 def __get__(self, obj, type=None): member in SpecSignatureTest.test_skip_attributeerrors.Raiser
890 def __get__(self, obj, cls=None): member in SpecSignatureTest.test_autospec_data_descriptor.Descriptor
/third_party/python/Doc/reference/
Ddatamodel.rst1530 for ``self``; or :meth:`__get__` of a *name* property raises
1673 .. method:: object.__get__(self, instance, owner=None)
1684 :PEP:`252` specifies that :meth:`__get__` is callable with one or two
1742 protocol: :meth:`__get__`, :meth:`__set__`, and :meth:`__delete__`. If any of
1760 descriptor method: ``x.__get__(a)``.
1764 ``type(a).__dict__['x'].__get__(a, type(a))``.
1768 ``A.__dict__['x'].__get__(None, A)``.
1774 ``A.__dict__['m'].__get__(obj, obj.__class__)``.
1778 of :meth:`__get__`, :meth:`__set__` and :meth:`__delete__`. If it does not
1779 define :meth:`__get__`, then accessing the attribute will return the descriptor
[all …]
/third_party/python/Lib/unittest/
Dmock.py2117 def __get__(self, obj, _type=None): member in MagicProxy
2848 def __get__(self, obj, obj_type=None): member in PropertyMock
/third_party/python/Lib/unittest/test/
Dtest_loader.py1266 def __get__(*ignored): member in Test_TestLoader.test_getTestCaseNames__testNamePatterns__attribute_access_regression.Trap
/third_party/python/Doc/whatsnew/
D2.2.rst176 * ``__get__(object)`` is a method that retrieves the attribute value from
187 descriptor.__get__(obj)
189 For methods, :meth:`descriptor.__get__` returns a temporary object that's
/third_party/python/Doc/library/
Dinspect.rst421 has a :meth:`~object.__get__` method but not a :meth:`~object.__set__`
1261 result = result.__get__()
Dfunctools.rst330 another instance of :class:`partialmethod`), calls to ``__get__`` are
Dunittest.mock.rst822 :class:`PropertyMock` provides :meth:`__get__` and :meth:`__set__` methods
2027 * Descriptor methods: ``__get__``, ``__set__`` and ``__delete__``
2163 * ``__get__``, ``__set__`` and ``__delete__``
/third_party/python/Doc/extending/
Dnewtypes.rst316 \method{__get__()} handler is a function which is passed the descriptor,
/third_party/python/Doc/c-api/
Dtypeobj.rst115 …| :c:member:`~PyTypeObject.tp_descr_get` | :c:type:`descrgetfunc` | __get__
1103 - ``meth.__get__(obj, cls)(*args, **kwds)`` (with ``obj`` not None)
1106 - ``meth.__get__(None, cls)(*args, **kwds)``
/third_party/protobuf/python/google/protobuf/internal/
Dreflection_test.py3055 self.assertEqual(unittest_pb2.TestAllTypes.optional_int32.__get__(msg), 42)
3061 unittest_pb2.ForeignMessage.c.__get__(msg)

12