mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-33012: Fix signatures of METH_NOARGS funstions. (GH-10736)
This commit is contained in:
parent
4a934d490f
commit
81524022d0
5 changed files with 15 additions and 15 deletions
|
|
@ -4201,7 +4201,7 @@ dictviews_isdisjoint(PyObject *self, PyObject *other)
|
|||
PyDoc_STRVAR(isdisjoint_doc,
|
||||
"Return True if the view and the given iterable have a null intersection.");
|
||||
|
||||
static PyObject* dictkeys_reversed(_PyDictViewObject *dv);
|
||||
static PyObject* dictkeys_reversed(_PyDictViewObject *dv, PyObject *Py_UNUSED(ignored));
|
||||
|
||||
PyDoc_STRVAR(reversed_keys_doc,
|
||||
"Return a reverse iterator over the dict keys.");
|
||||
|
|
@ -4254,7 +4254,7 @@ dictkeys_new(PyObject *dict, PyObject *Py_UNUSED(ignored))
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
dictkeys_reversed(_PyDictViewObject *dv)
|
||||
dictkeys_reversed(_PyDictViewObject *dv, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
if (dv->dv_dict == NULL) {
|
||||
Py_RETURN_NONE;
|
||||
|
|
|
|||
|
|
@ -1804,7 +1804,7 @@ done:
|
|||
PyDoc_STRVAR(reduce_doc, "Return state information for pickling");
|
||||
|
||||
static PyObject *
|
||||
odictiter_reduce(odictiterobject *di)
|
||||
odictiter_reduce(odictiterobject *di, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
/* copy the iterator state */
|
||||
odictiterobject tmp = *di;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue