summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhalid Mammadov <khalidmammadov9@gmail.com>2020-01-05 22:39:38 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-01-05 22:39:38 (GMT)
commit94d9cfc4ed9dd3c4a3a359bc194b4dc3f6ba63eb (patch)
treea2baea4c0b47aab6092b6832e0da1a2b6f4a0d57
parentabc0c4fa9970931849b3da598c5980a5b170661e (diff)
downloadcpython-94d9cfc4ed9dd3c4a3a359bc194b4dc3f6ba63eb.zip
cpython-94d9cfc4ed9dd3c4a3a359bc194b4dc3f6ba63eb.tar.gz
cpython-94d9cfc4ed9dd3c4a3a359bc194b4dc3f6ba63eb.tar.bz2
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
-rw-r--r--Doc/library/stdtypes.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index c4588f8..3e25faa 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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*