Skip to content

Commit 13d551f

Browse files
khalidmammadovshihai1991
authored andcommitted
bpo-39130: Dict reversed was added in v3.8 so should say in the doc as well (pythonGH-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
1 parent f3d2661 commit 13d551f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/stdtypes.rst

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

4354+
.. versionadded:: 3.8
4355+
43544356
.. method:: setdefault(key[, default])
43554357

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

0 commit comments

Comments
 (0)