Skip to content

Commit 94d9cfc

Browse files
khalidmammadovmiss-islington
authored andcommitted
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
1 parent abc0c4f commit 94d9cfc

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
@@ -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)