mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
Fix minor grammatical mistakes in reversed(dict) doc (GH-10997)
This commit is contained in:
parent
7804e8c70c
commit
d83f5bda34
1 changed files with 2 additions and 2 deletions
|
@ -4283,7 +4283,7 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
|
|||
|
||||
.. describe:: reversed(d)
|
||||
|
||||
Return a reversed iterator over the keys of the dictionary. This is a
|
||||
Return a reverse iterator over the keys of the dictionary. This is a
|
||||
shortcut for ``reversed(d.keys())``.
|
||||
|
||||
.. method:: setdefault(key[, default])
|
||||
|
@ -4394,7 +4394,7 @@ support membership tests:
|
|||
|
||||
.. describe:: reversed(dictview)
|
||||
|
||||
Return an reversed iterator over the keys, values or items of the dictionnary.
|
||||
Return a reverse iterator over the keys, values or items of the dictionary.
|
||||
The view will be iterated in reverse order of the insertion.
|
||||
|
||||
.. versionchanged:: 3.8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue