]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39130: Dict reversed was added in v3.8 so should say in the doc as well (GH-17694)
authorKhalid Mammadov <khalidmammadov9@gmail.com>
Sun, 5 Jan 2020 22:39:38 +0000 (22:39 +0000)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Jan 2020 22:39:38 +0000 (14:39 -0800)
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

Doc/library/stdtypes.rst

index c4588f89c0662546cb72f321c63de43fe5f4850d..3e25faaa4271491830ffb74430366b55e645abd6 100644 (file)
@@ -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*