mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #16991: Do not return None from OrderedDict.__reversed__.
This commit is contained in:
parent
c5e59609ac
commit
67fb92e8c6
2 changed files with 13 additions and 4 deletions
|
|
@ -1357,9 +1357,6 @@ static PyObject * odictiter_new(PyODictObject *, int);
|
|||
static PyObject *
|
||||
odict_reversed(PyODictObject *od)
|
||||
{
|
||||
if (_odict_EMPTY(od)) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
return odictiter_new(od, _odict_ITER_KEYS|_odict_ITER_REVERSED);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue