Skip to content

Commit 8994788

Browse files
bpo-39130: Dict reversed was added in v3.8 so should say in the doc as well (GH-17694)
To be consistent with document layout, it should say when the feature was added. Although it's mentioned few other places in the doc but it's not explicitly say that at that place. https://bugs.python.org/issue39130 (cherry picked from commit 94d9cfc) Co-authored-by: Khalid Mammadov <khalidmammadov9@gmail.com>
1 parent cfeacf2 commit 8994788

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/stdtypes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4326,6 +4326,8 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
43264326
Return a reverse iterator over the keys of the dictionary. This is a
43274327
shortcut for ``reversed(d.keys())``.
43284328

4329+
.. versionadded:: 3.8
4330+
43294331
.. method:: setdefault(key[, default])
43304332

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

0 commit comments

Comments
 (0)