]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] Add soft keywords to the documentation (GH-21185) (GH-21187)
authorPablo Galindo <Pablogsal@gmail.com>
Sun, 28 Jun 2020 01:10:37 +0000 (02:10 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Jun 2020 01:10:37 +0000 (02:10 +0100)
(cherry picked from commit 89e82c4)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Doc/library/keyword.rst

index acec45cdcd586e36a3ed65461dc513fd17d808ae..5cae79f5dc9dbce3e0d40da5b2648eed12f38d53 100644 (file)
@@ -22,3 +22,19 @@ This module allows a Python program to determine if a string is a
    Sequence containing all the :ref:`keywords <keywords>` defined for the
    interpreter.  If any keywords are defined to only be active when particular
    :mod:`__future__` statements are in effect, these will be included as well.
+
+
+.. function:: issoftkeyword(s)
+
+   Return ``True`` if *s* is a Python soft :ref:`keyword <keywords>`.
+
+   .. versionadded:: 3.9
+
+
+.. data:: softkwlist
+
+   Sequence containing all the soft :ref:`keywords <keywords>` defined for the
+   interpreter.  If any soft keywords are defined to only be active when particular
+   :mod:`__future__` statements are in effect, these will be included as well.
+
+   .. versionadded:: 3.9