[Python-checkins] bpo-39130: Dict reversed was added in v3.8 so should say in the doc as well (GH-17694)

Miss Islington (bot) webhook-mailer at python.org
Sun Jan 5 17:45:39 EST 2020


https://github.com/python/cpython/commit/89947881ac36324148fab75190af453dc09fd862
commit: 89947881ac36324148fab75190af453dc09fd862
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-01-05T14:45:35-08:00
summary:

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 94d9cfc4ed9dd3c4a3a359bc194b4dc3f6ba63eb)

Co-authored-by: Khalid Mammadov <khalidmammadov9 at gmail.com>

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index be72695462c7b..d6db9b5411d8a 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -4326,6 +4326,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*



More information about the Python-checkins mailing list