Visitar URL original
bpo-39130: Dict reversed was added in v3.8 so should say in the doc as well by khalidmammadov · Pull Request #17694 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260522055147/https://github.com/python/cpython/pull/17694/files
Skip to content
/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4351,6 +4351,8 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
Return a reverse iterator over the keys of the dictionary. This is a
shortcut for ``reversed(d.keys())``.

.. versionadded:: 3.8

.. method:: setdefault(key[, default])

If *key* is in the dictionary, return its value. If not, insert *key*
Expand Down