bpo-30592: Fixed error messages for some builtins. (#1996) · python/cpython@6cca5c8 (original) (raw)
`@@ -871,7 +871,7 @@ cycle_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
`
871
871
`PyObject *saved;
`
872
872
`cycleobject *lz;
`
873
873
``
874
``
`-
if (type == &cycle_type && !_PyArg_NoKeywords("cycle()", kwds))
`
``
874
`+
if (type == &cycle_type && !_PyArg_NoKeywords("cycle", kwds))
`
875
875
`return NULL;
`
876
876
``
877
877
`if (!PyArg_UnpackTuple(args, "cycle", 1, 1, &iterable))
`
`@@ -1072,7 +1072,7 @@ dropwhile_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
`
1072
1072
`PyObject *it;
`
1073
1073
`dropwhileobject *lz;
`
1074
1074
``
1075
``
`-
if (type == &dropwhile_type && !_PyArg_NoKeywords("dropwhile()", kwds))
`
``
1075
`+
if (type == &dropwhile_type && !_PyArg_NoKeywords("dropwhile", kwds))
`
1076
1076
`return NULL;
`
1077
1077
``
1078
1078
`if (!PyArg_UnpackTuple(args, "dropwhile", 2, 2, &func, &seq))
`
`@@ -1240,7 +1240,7 @@ takewhile_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
`
1240
1240
`PyObject *it;
`
1241
1241
`takewhileobject *lz;
`
1242
1242
``
1243
``
`-
if (type == &takewhile_type && !_PyArg_NoKeywords("takewhile()", kwds))
`
``
1243
`+
if (type == &takewhile_type && !_PyArg_NoKeywords("takewhile", kwds))
`
1244
1244
`return NULL;
`
1245
1245
``
1246
1246
`if (!PyArg_UnpackTuple(args, "takewhile", 2, 2, &func, &seq))
`
`@@ -1408,7 +1408,7 @@ islice_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
`
1408
1408
`Py_ssize_t numargs;
`
1409
1409
`isliceobject *lz;
`
1410
1410
``
1411
``
`-
if (type == &islice_type && !_PyArg_NoKeywords("islice()", kwds))
`
``
1411
`+
if (type == &islice_type && !_PyArg_NoKeywords("islice", kwds))
`
1412
1412
`return NULL;
`
1413
1413
``
1414
1414
`if (!PyArg_UnpackTuple(args, "islice", 2, 4, &seq, &a1, &a2, &a3))
`
`@@ -1662,7 +1662,7 @@ starmap_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
`
1662
1662
`PyObject *it;
`
1663
1663
`starmapobject *lz;
`
1664
1664
``
1665
``
`-
if (type == &starmap_type && !_PyArg_NoKeywords("starmap()", kwds))
`
``
1665
`+
if (type == &starmap_type && !_PyArg_NoKeywords("starmap", kwds))
`
1666
1666
`return NULL;
`
1667
1667
``
1668
1668
`if (!PyArg_UnpackTuple(args, "starmap", 2, 2, &func, &seq))
`
`@@ -1820,7 +1820,7 @@ chain_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
`
1820
1820
`{
`
1821
1821
`PyObject *source;
`
1822
1822
``
1823
``
`-
if (type == &chain_type && !_PyArg_NoKeywords("chain()", kwds))
`
``
1823
`+
if (type == &chain_type && !_PyArg_NoKeywords("chain", kwds))
`
1824
1824
`return NULL;
`
1825
1825
``
1826
1826
`source = PyObject_GetIter(args);
`
`@@ -3769,7 +3769,7 @@ filterfalse_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
`
3769
3769
`filterfalseobject *lz;
`
3770
3770
``
3771
3771
`if (type == &filterfalse_type &&
`
3772
``
`-
!_PyArg_NoKeywords("filterfalse()", kwds))
`
``
3772
`+
!_PyArg_NoKeywords("filterfalse", kwds))
`
3773
3773
`return NULL;
`
3774
3774
``
3775
3775
`if (!PyArg_UnpackTuple(args, "filterfalse", 2, 2, &func, &seq))
`