Home
last modified time | relevance | path

Searched refs:__set_name__ (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_subclassinit.py105 def __set_name__(self, owner, name): member in Test.test_set_name.Descriptor
124 def __set_name__(self, owner, name): member in Test.test_set_name_metaclass.Descriptor
134 def __set_name__(self, owner, name): member in Test.test_set_name_error.Descriptor
149 def __set_name__(self): member in Test.test_set_name_wrong.Descriptor
176 def __set_name__(self, owner, name): member in Test.test_set_name_init_subclass.Descriptor
203 def __set_name__(self, owner, name): member in Test.test_set_name_modifying_dict.Descriptor
Dtest_dataclasses.py2740 def __set_name__(self, owner, name): member in TestDescriptors.test_set_name.D
2768 def __set_name__(self, owner, name): member in TestDescriptors.test_non_descriptor.D
2783 d.__set_name__ = Mock()
2790 self.assertEqual(d.__set_name__.call_count, 0)
2796 D.__set_name__ = Mock()
2803 self.assertEqual(D.__set_name__.call_count, 1)
/external/python/cpython3/Misc/NEWS.d/
D3.6.0rc1.rst19 Modifying the class __dict__ inside the __set_name__ method of a descriptor
20 that is used inside that class no longer prevents calling the __set_name__
D3.7.0b4.rst247 In dataclasses, Field.__set_name__ now looks up the __set_name__ special
D3.7.0b3.rst110 Have Field objects pass through __set_name__ to their default values, if
111 they have their own __set_name__.
D3.6.0b3.rst46 Improved exception reporting for problematic __set_name__ attributes.
D3.6.0a4.rst127 Descriptors are initialized with __set_name__ after class creation.
D3.6.0b2.rst161 Now __set_name__ is looked up on the class instead of the instance.
D3.7.0a1.rst1032 Modifying the class __dict__ inside the __set_name__ method of a descriptor
1033 that is used inside that class no longer prevents calling the __set_name__
1233 Improved exception reporting for problematic __set_name__ attributes.
1406 Now __set_name__ is looked up on the class instead of the instance.
D3.8.0a1.rst5291 In dataclasses, Field.__set_name__ now looks up the __set_name__ special
5311 Have Field objects pass through __set_name__ to their default values, if
5312 they have their own __set_name__.
/external/python/cpython3/Tools/c-analyzer/c_analyzer/common/
Dutil.py95 def __set_name__(self, cls, name): member in Slot
171 def __set_name__(self, cls, name): member in classonly
/external/python/cpython3/Doc/howto/
Ddescriptor.rst220 callback to :meth:`__set_name__` in *LoggedAccess* so that the field names can
231 def __set_name__(self, owner, name):
257 :meth:`__set_name__` so that the field names would be recorded. Here
298 Optionally, descriptors can have a :meth:`__set_name__` method. This is only
347 def __set_name__(self, owner, name):
783 and if they define :meth:`__set_name__`, that method is called with two
792 afterwards, :meth:`__set_name__` will need to be called manually.
810 def __set_name__(self, owner, name):
/external/python/cpython3/Lib/
Ddataclasses.py281 def __set_name__(self, owner, name): member in Field
Dfunctools.py940 def __set_name__(self, owner, name): member in cached_property
/external/python/cpython3/Doc/reference/
Ddatamodel.rst1706 .. method:: object.__set_name__(self, owner, name)
1713 :meth:`__set_name__` is only called implicitly as part of the
1722 descr.__set_name__(A, 'attr')
2069 namespace that define a :meth:`~object.__set_name__` method;
2070 * second, all of these ``__set_name__`` methods are called with the class
/external/python/cpython3/Doc/whatsnew/
D3.6.rst367 :meth:`~object.__set_name__` method. Whenever a new class is defined, the new
384 def __set_name__(self, owner, name):
/external/python/cpython3/Tools/c-analyzer/
DTODO434 Objects/typeobject.c:PyId___set_name__ _Py_IDENTIFIER(__set_name__)
Dknown.tsv1358 Objects/typeobject.c - PyId___set_name__ variable _Py_IDENTIFIER(__set_name__)
/external/python/cpython3/Objects/
Dtypeobject.c80 _Py_IDENTIFIER(__set_name__);