Home
last modified time | relevance | path

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

123

/external/python/cpython3/Doc/howto/
Ddescriptor.rst28 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/
Ddescriptor.rst28 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/
Dtest_struct_fields.py66 MyCStruct.field.__get__, 'wrong type self', 42)
71 MyCUnion.field.__get__, 'wrong type self', 42)
/external/python/cpython3/Lib/ctypes/test/
Dtest_struct_fields.py66 MyCStruct.field.__get__, 'wrong type self', 42)
71 MyCUnion.field.__get__, 'wrong type self', 42)
/external/tensorflow/tensorflow/python/util/
Dtf_decorator.py238 def __get__(self, instance, owner): member in TFDecorator
239 return self._decorated_target.__get__(instance, owner)
Ddecorator_utils.py144 def __get__(self, owner_self, owner_cls): member in classproperty
Dtf_decorator_test.py176 def __get__(self, instance, owner): member in TfDecoratorTest.testTarget__get__IsProxied.Descr
/external/autotest/client/common_lib/
Ddecorators.py69 def __get__(self, instance, owner): member in _CachedProperty
/external/llvm/bindings/python/llvm/
Dcommon.py85 def __get__(self, instance, instance_type=None): member in CachedProperty
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/python/llvm/
Dcommon.py85 def __get__(self, instance, instance_type=None): member in CachedProperty
/external/python/google-api-python-client/googleapiclient/
Ddiscovery.py1095 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/
Dtest_descr.py528 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 …]
Dtest_inspect.py447 def __get__(*args): member in _BrokenDataDescriptor
461 def __get__(*args): member in _BrokenMethodDescriptor
/external/autotest/client/cros/
Dmainloop.py99 return to_return.__get__(self, GenericTesterMainLoop)
/external/python/cpython3/Lib/test/
Dtest_descr.py509 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 …]
Dtest_module.py285 def __get__(self, o, t): member in ModuleTests.test_descriptor_errors_propagate.Descr
/external/python/cpython2/Demo/newmetaclasses/
DEiffel.py71 def __get__(self, obj, cls): member in EiffelDescriptor
/external/python/cpython3/Tools/demo/
Deiffel.py81 def __get__(self, obj, cls): member in EiffelDescriptor
/external/scapy/scapy/
Dconfig.py53 def __get__(self, obj, typ=None): member in Interceptor
287 def __get__(self, obj, otype): member in LogLevel
/external/python/setuptools/setuptools/command/
Dtest.py65 def __get__(self, obj, objtype=None): member in NonDataProperty
Dbuild_ext.py186 compiler.link_shared_object = link_shared_object.__get__(compiler)
/external/tensorflow/tensorflow/python/keras/utils/
Dmetrics_utils.py138 return func.__get__(instance_ref(), cls)(*args, **kwargs)
/external/python/cpython3/Lib/
Dtypes.py164 def __get__(self, instance, ownerclass=None): member in DynamicClassAttribute
Dfunctools.py368 def __get__(self, obj, cls): member in partialmethod
384 result = self._make_unbound_method().__get__(obj, cls)
/external/python/cpython2/Lib/distutils/tests/
Dsetuptools_build_ext.py163 compiler.link_shared_object = link_shared_object.__get__(compiler)

123