/external/python/cpython3/Doc/howto/ |
D | descriptor.rst | 28 protocol. Those methods are :meth:`__get__`, :meth:`__set__`, and 51 ``descr.__get__(self, obj, type=None) -> value`` 61 If an object defines both :meth:`__get__` and :meth:`__set__`, it is considered 62 a data descriptor. Descriptors that only define :meth:`__get__` are called 72 To make a read-only data descriptor, define both :meth:`__get__` and 82 ``d.__get__(obj)``. 86 of ``obj``. If ``d`` defines the method :meth:`__get__`, then ``d.__get__(obj)`` 92 transforms ``b.x`` into ``type(b).__dict__['x'].__get__(b, type(b))``. The 100 ``B.x`` into ``B.__dict__['x'].__get__(None, B)``. In pure Python, it looks 106 if hasattr(v, '__get__'): [all …]
|
/external/python/cpython2/Doc/howto/ |
D | descriptor.rst | 28 protocol. Those methods are :meth:`__get__`, :meth:`__set__`, and 53 ``descr.__get__(self, obj, type=None) --> value`` 63 If an object defines both :meth:`__get__` and :meth:`__set__`, it is considered 64 a data descriptor. Descriptors that only define :meth:`__get__` are called 74 To make a read-only data descriptor, define both :meth:`__get__` and 84 ``d.__get__(obj)``. 88 of ``obj``. If ``d`` defines the method :meth:`__get__`, then ``d.__get__(obj)`` 96 transforms ``b.x`` into ``type(b).__dict__['x'].__get__(b, type(b))``. The 104 ``B.x`` into ``B.__dict__['x'].__get__(None, B)``. In pure Python, it looks 110 if hasattr(v, '__get__'): [all …]
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_struct_fields.py | 66 MyCStruct.field.__get__, 'wrong type self', 42) 71 MyCUnion.field.__get__, 'wrong type self', 42)
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_struct_fields.py | 66 MyCStruct.field.__get__, 'wrong type self', 42) 71 MyCUnion.field.__get__, 'wrong type self', 42)
|
/external/tensorflow/tensorflow/python/util/ |
D | tf_decorator.py | 238 def __get__(self, instance, owner): member in TFDecorator 239 return self._decorated_target.__get__(instance, owner)
|
D | decorator_utils.py | 144 def __get__(self, owner_self, owner_cls): member in classproperty
|
D | tf_decorator_test.py | 176 def __get__(self, instance, owner): member in TfDecoratorTest.testTarget__get__IsProxied.Descr
|
/external/autotest/client/common_lib/ |
D | decorators.py | 69 def __get__(self, instance, owner): member in _CachedProperty
|
/external/llvm/bindings/python/llvm/ |
D | common.py | 85 def __get__(self, instance, instance_type=None): member in CachedProperty
|
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/python/llvm/ |
D | common.py | 85 def __get__(self, instance, instance_type=None): member in CachedProperty
|
/external/python/google-api-python-client/googleapiclient/ |
D | discovery.py | 1095 method.__get__(self, self.__class__)) 1102 method.__get__(self, self.__class__)) 1133 method.__get__(self, self.__class__)) 1158 method.__get__(self, self.__class__))
|
/external/python/cpython2/Lib/test/ |
D | test_descr.py | 528 setattr(it, key, self.dict[key].__get__(it, self)) 1401 self.assertEqual(ff.__get__(0, int)(42), (int, 42)) 1402 self.assertEqual(ff.__get__(0)(42), (int, 42)) 1413 meth = classmethod(1).__get__(1) 1536 self.assertTrue(repr(C.foo.__get__(C())).startswith("<bound method ")) 1546 def __get__(self, obj, type=None): member in ClassPropertiesAndMethods.test_compattr.C.computed_attribute 1807 self.assertTrue(repr(C.foo.__get__(C(1))).startswith("<bound method ")) 1877 def __get__(self, obj, owner): member in ClassPropertiesAndMethods.test_special_method_lookup.SpecialDescr 1879 return self.impl.__get__(obj, owner) 1883 def __get__(self, obj, owner): member in ClassPropertiesAndMethods.test_special_method_lookup.ErrDescr [all …]
|
D | test_inspect.py | 447 def __get__(*args): member in _BrokenDataDescriptor 461 def __get__(*args): member in _BrokenMethodDescriptor
|
/external/autotest/client/cros/ |
D | mainloop.py | 99 return to_return.__get__(self, GenericTesterMainLoop)
|
/external/python/cpython3/Lib/test/ |
D | test_descr.py | 509 setattr(it, key, self.dict[key].__get__(it, self)) 1531 self.assertEqual(ff.__get__(0, int)(42), (int, 42)) 1532 self.assertEqual(ff.__get__(0)(42), (int, 42)) 1543 meth = classmethod(1).__get__(1) 1669 self.assertTrue(repr(C.foo.__get__(C())).startswith("<bound method ")) 1679 def __get__(self, obj, type=None): member in ClassPropertiesAndMethods.test_compattr.C.computed_attribute 1933 self.assertTrue(repr(C.foo.__get__(C(1))).startswith("<bound method ")) 2007 def __get__(self, obj, owner): member in ClassPropertiesAndMethods.test_special_method_lookup.SpecialDescr 2009 return self.impl.__get__(obj, owner) 2013 def __get__(self, obj, owner): member in ClassPropertiesAndMethods.test_special_method_lookup.ErrDescr [all …]
|
D | test_module.py | 285 def __get__(self, o, t): member in ModuleTests.test_descriptor_errors_propagate.Descr
|
/external/python/cpython2/Demo/newmetaclasses/ |
D | Eiffel.py | 71 def __get__(self, obj, cls): member in EiffelDescriptor
|
/external/python/cpython3/Tools/demo/ |
D | eiffel.py | 81 def __get__(self, obj, cls): member in EiffelDescriptor
|
/external/scapy/scapy/ |
D | config.py | 53 def __get__(self, obj, typ=None): member in Interceptor 287 def __get__(self, obj, otype): member in LogLevel
|
/external/python/setuptools/setuptools/command/ |
D | test.py | 65 def __get__(self, obj, objtype=None): member in NonDataProperty
|
D | build_ext.py | 186 compiler.link_shared_object = link_shared_object.__get__(compiler)
|
/external/tensorflow/tensorflow/python/keras/utils/ |
D | metrics_utils.py | 138 return func.__get__(instance_ref(), cls)(*args, **kwargs)
|
/external/python/cpython3/Lib/ |
D | types.py | 164 def __get__(self, instance, ownerclass=None): member in DynamicClassAttribute
|
D | functools.py | 368 def __get__(self, obj, cls): member in partialmethod 384 result = self._make_unbound_method().__get__(obj, cls)
|
/external/python/cpython2/Lib/distutils/tests/ |
D | setuptools_build_ext.py | 163 compiler.link_shared_object = link_shared_object.__get__(compiler)
|