Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/crashers/
Dborrowed_ref_2.py17 def __set__(self, obj, value): member in D
/external/python/cpython2/Doc/howto/
Ddescriptor.rst28 protocol. Those methods are :meth:`__get__`, :meth:`__set__`, and
55 ``descr.__set__(self, obj, value) --> None``
63 If an object defines both :meth:`__get__` and :meth:`__set__`, it is considered
75 :meth:`__set__` with the :meth:`__set__` raising an :exc:`AttributeError` when
76 called. Defining the :meth:`__set__` method with an exception raising
167 def __set__(self, obj, val):
230 def __set__(self, obj, value):
/external/python/cpython2/Doc/library/
Dinspect.rst340 has a :meth:`~object.__get__` method but not a :meth:`~object.__set__`
355 Data descriptors have both a :attr:`~object.__get__` and a :attr:`~object.__set__` method.
/external/python/cpython2/Lib/test/
Dtest_inspect.py439 def __set__(*args): member in _BrokenDataDescriptor
Dtest_descr.py1225 self.assertRaises(TypeError, MyABC.a.__set__, u, 3)
1511 def __set__(self, obj, value): member in ClassPropertiesAndMethods.test_compattr.C.computed_attribute
2038 C.x.__set__(a, 100)
3189 dict_descr.__set__(x, {})
4580 def __set__(self, obj, value): member in ClassPropertiesAndMethods.test_set_and_no_get.Descr
D_mock_backport.py2357 def __set__(self, obj, val): member in PropertyMock
/external/python/cpython2/Doc/reference/
Ddatamodel.rst1571 .. method:: object.__set__(self, instance, value)
1589 protocol: :meth:`__get__`, :meth:`__set__`, and :meth:`__delete__`. If any of
1627 of :meth:`__get__`, :meth:`__set__` and :meth:`__delete__`. If it does not
1630 the descriptor defines :meth:`__set__` and/or :meth:`__delete__`, it is a data
1632 descriptors define both :meth:`__get__` and :meth:`__set__`, while non-data
1634 :meth:`__set__` and :meth:`__get__` defined always override a redefinition in an
/external/pdfium/third_party/pymock/
Dmock.py2366 def __set__(self, obj, val): member in PropertyMock
/external/python/cpython2/Doc/
Dglossary.rst169 :meth:`__set__`, or :meth:`__delete__`. When a class attribute is a
/external/python/cpython2/Doc/extending/
Dnewtypes.rst1247 returns \NULL{} and sets an exception. The \method{__set__()} handler is
/external/python/cpython2/Doc/whatsnew/
D2.2.rst179 * :meth:`__set__(object, value)` sets the attribute on *object* to *value*.
/external/python/cpython2/Misc/
DHISTORY6110 are still called __get__ and __set__, respectively.)