Home
last modified time | relevance | path

Searched refs:__set__ (Results 1 – 25 of 26) sorted by relevance

12

/third_party/python/Lib/ctypes/test/
Dtest_struct_fields.py63 MyCStruct.field.__set__, 'wrong type self', 42)
68 MyCUnion.field.__set__, 'wrong type self', 42)
/third_party/python/Lib/
Dssl.py603 super(SSLContext, SSLContext).minimum_version.__set__(self, value)
611 super(SSLContext, SSLContext).maximum_version.__set__(self, value)
619 super(SSLContext, SSLContext).options.__set__(self, value)
680 super(SSLContext, SSLContext)._msg_callback.__set__(self, None)
713 super(SSLContext, SSLContext)._msg_callback.__set__(self, inner)
725 super(SSLContext, SSLContext).verify_flags.__set__(self, value)
737 super(SSLContext, SSLContext).verify_mode.__set__(self, value)
Dtypes.py185 def __set__(self, instance, value): member in DynamicClassAttribute
/third_party/python/Lib/test/
Dtest_opcache.py21 Descriptor.__set__ = lambda *args: None
Daudit-tests.py175 type.__dict__["__bases__"].__set__(C, (B,))
Dtest_descr.py1405 self.assertRaises(TypeError, MyABC.a.__set__, u, 3)
1733 def __set__(self, obj, value): member in ClassPropertiesAndMethods.test_compattr.C.computed_attribute
2262 C.x.__set__(a, 100)
3370 dict_descr.__set__(x, {})
4638 def __set__(self, obj, value): member in ClassPropertiesAndMethods.test_set_and_no_get.Descr
4774 type(list).__dict__["__doc__"].__set__(list, "blah")
4804 self.assertRaises(TypeError, type.__dict__['__qualname__'].__set__,
Dtest_inspect.py821 def __set__(*args): member in _BrokenDataDescriptor
1413 def __set__(self, name, value): pass member in TestIsDataDescriptor.test_custom_descriptors.DataDescriptor0
1417 __set__ = None variable in TestIsDataDescriptor.test_custom_descriptors.DataDescriptor2
1962 descriptor.__set__ = lambda s, i, v: None
Dtest_pydoc.py1277 def __set__(self, obj, cls): member in TestDescriptions.test_custom_data_descriptor.Descr
Dtest_collections.py677 self.assertRaises(AttributeError, Point.x.__set__, p, 33)
/third_party/python/Doc/howto/
Ddescriptor.rst136 descriptor's :meth:`__get__` and :meth:`__set__` methods are triggered when
156 def __set__(self, obj, value):
166 self.age = age # Calls __set__()
169 self.age += 1 # Calls both __get__() and __set__()
240 def __set__(self, obj, value):
298 :meth:`__set__`, or :meth:`__delete__`.
355 def __set__(self, obj, value):
501 the descriptor protocol. Those methods are :meth:`__get__`, :meth:`__set__`,
526 ``descr.__set__(self, obj, value) -> None``
534 If an object defines :meth:`__set__` or :meth:`__delete__`, it is considered
[all …]
/third_party/python/Tools/c-analyzer/c_common/
Dclsutil.py59 def __set__(self, obj, value): member in Slot
/third_party/python/Doc/reference/
Ddatamodel.rst1731 .. method:: object.__set__(self, instance, value)
1736 Note, adding :meth:`__set__` or :meth:`__delete__` changes the kind of
1760 protocol: :meth:`~object.__get__`, :meth:`~object.__set__`, and
1797 of :meth:`~object.__get__`, :meth:`~object.__set__` and
1801 the descriptor defines :meth:`__set__` and/or :meth:`__delete__`, it is a data
1803 descriptors define both :meth:`__get__` and :meth:`__set__`, while non-data
1805 :meth:`__get__` and :meth:`__set__` (and/or :meth:`__delete__`) defined always override a redefinit…
/third_party/python/Lib/unittest/test/testmock/
Dtesthelpers.py893 def __set__(self, obj, value): pass member in SpecSignatureTest.test_autospec_data_descriptor.Descriptor
/third_party/python/Doc/library/
Dinspect.rst427 has a :meth:`~object.__get__` method but not a :meth:`~object.__set__`
442 Data descriptors have a :attr:`~object.__set__` or a :attr:`~object.__delete__` method.
Dunittest.mock.rst823 :class:`PropertyMock` provides :meth:`__get__` and :meth:`__set__` methods
2028 * Descriptor methods: ``__get__``, ``__set__`` and ``__delete__``
2164 * ``__get__``, ``__set__`` and ``__delete__``
/third_party/python/Doc/extending/
Dnewtypes.rst335 returns \NULL{} and sets an exception. The \method{__set__()} handler is
/third_party/python/Lib/unittest/
Dmock.py2907 def __set__(self, obj, val): member in PropertyMock
/third_party/python/Tools/c-analyzer/
DTODO456 Objects/typeobject.c:slot_tp_descr_set():PyId___set__ _Py_IDENTIFIER(__set__)
/third_party/protobuf/python/google/protobuf/internal/
Dreflection_test.py3056 unittest_pb2.TestAllTypes.optional_int32.__set__(msg, 25)
/third_party/python/Doc/
Dglossary.rst308 Any object which defines the methods :meth:`__get__`, :meth:`__set__`, or
/third_party/python/Doc/whatsnew/
D2.2.rst179 * ``__set__(object, value)`` sets the attribute on *object* to *value*.
D3.6.rst378 def __set__(self, instance, value):
/third_party/python/Doc/c-api/
Dtypeobj.rst117 …| :c:member:`~PyTypeObject.tp_descr_set` | :c:type:`descrsetfunc` | __set__, …
/third_party/python/Objects/
Dtypeobject.c7695 _Py_IDENTIFIER(__set__); in slot_tp_descr_set()
/third_party/python/Misc/NEWS.d/
D3.8.0a1.rst4840 Correct ``inspect.isdatadescriptor`` to look for ``__set__`` or

12