/third_party/python/Lib/ctypes/test/ |
D | test_struct_fields.py | 66 MyCStruct.field.__get__, 'wrong type self', 42) 71 MyCUnion.field.__get__, 'wrong type self', 42)
|
/third_party/python/Doc/howto/ |
D | descriptor.rst | 46 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/ |
D | util.py | 106 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/ |
D | functools.py | 392 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
|
D | types.py | 171 def __get__(self, instance, ownerclass=None): member in DynamicClassAttribute
|
D | inspect.py | 1564 return type.__dict__['__mro__'].__get__(klass) 1595 class_dict = dict_attr.__get__(entry)["__dict__"]
|
D | _pyio.py | 286 def __get__(self, obj, typ=None): member in DocDescriptor
|
/third_party/python/Lib/test/ |
D | test_decorators.py | 284 def __get__(self, instance, owner): member in TestDecorators.test_wrapped_descriptor_inside_classmethod.Wrapper 285 bound_function = self.__wrapped__.__get__(instance, owner)
|
D | test_descr.py | 520 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 …]
|
D | test_module.py | 283 def __get__(self, o, t): member in ModuleTests.test_descriptor_errors_propagate.Descr
|
D | test_pydoc.py | 1246 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
|
D | test_inspect.py | 793 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/ |
D | eiffel.py | 81 def __get__(self, obj, cls=None): member in EiffelDescriptor
|
/third_party/boost/tools/build/src/util/ |
D | __init__.py | 177 def __get__(self, instance, type): member in cached
|
/third_party/python/Lib/unittest/test/testmock/ |
D | testhelpers.py | 505 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/ |
D | datamodel.rst | 1530 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/ |
D | mock.py | 2117 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/ |
D | test_loader.py | 1266 def __get__(*ignored): member in Test_TestLoader.test_getTestCaseNames__testNamePatterns__attribute_access_regression.Trap
|
/third_party/python/Doc/whatsnew/ |
D | 2.2.rst | 176 * ``__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/ |
D | inspect.rst | 421 has a :meth:`~object.__get__` method but not a :meth:`~object.__set__` 1261 result = result.__get__()
|
D | functools.rst | 330 another instance of :class:`partialmethod`), calls to ``__get__`` are
|
D | unittest.mock.rst | 822 :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/ |
D | newtypes.rst | 316 \method{__get__()} handler is a function which is passed the descriptor,
|
/third_party/python/Doc/c-api/ |
D | typeobj.rst | 115 …| :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/ |
D | reflection_test.py | 3055 self.assertEqual(unittest_pb2.TestAllTypes.optional_int32.__get__(msg), 42) 3061 unittest_pb2.ForeignMessage.c.__get__(msg)
|