]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add soft keywords to the documentation (GH-21185)
authorPablo Galindo <Pablogsal@gmail.com>
Sat, 27 Jun 2020 19:00:29 +0000 (20:00 +0100)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2020 19:00:29 +0000 (20:00 +0100)
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