Searched refs:match_args (Results 1 – 5 of 5) sorted by relevance
/third_party/python/Lib/ |
D | dataclasses.py | 883 match_args, kw_only, slots): argument 1096 if match_args: 1158 unsafe_hash=False, frozen=False, match_args=True, argument 1177 frozen, match_args, kw_only, slots) 1336 frozen=False, match_args=True, kw_only=False, slots=False): argument 1403 match_args=match_args, kw_only=kw_only, slots=slots)
|
/third_party/python/Doc/library/ |
D | dataclasses.rst | 49 …rue, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=Fa… 82 …rue, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=Fa… 164 - ``match_args``: If true (the default is ``True``), the 374 …rue, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=Fa… 383 ``match_args``, ``kw_only``, and ``slots`` have the same meaning as
|
/third_party/python/Python/ |
D | ceval.c | 1025 PyObject *match_args = NULL; in match_class() local 1029 match_args = PyObject_GetAttrString(type, "__match_args__"); in match_class() 1030 if (match_args) { in match_class() 1031 if (!PyTuple_CheckExact(match_args)) { in match_class() 1035 Py_TYPE(match_args)->tp_name); in match_class() 1045 match_args = PyTuple_New(0); in match_class() 1052 assert(PyTuple_CheckExact(match_args)); in match_class() 1053 Py_ssize_t allowed = match_self ? 1 : PyTuple_GET_SIZE(match_args); in match_class() 1068 PyObject *name = PyTuple_GET_ITEM(match_args, i); in match_class() 1084 Py_CLEAR(match_args); in match_class() [all …]
|
/third_party/python/Lib/test/ |
D | test_dataclasses.py | 3601 @dataclass(match_args=False) 3606 @dataclass(match_args=False) 3612 @dataclass(match_args=False) 3623 @dataclass(match_args=False) 3632 C = make_dataclass('C', [('x', int), ('y', int)], match_args=True) 3635 C = make_dataclass('C', [('x', int), ('y', int)], match_args=False)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0b1.rst | 840 Add match_args parameter to @dataclass decorator to allow suppression of
|