diff options
| author | Pablo Galindo <Pablogsal@gmail.com> | 2020-06-28 01:10:37 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-28 01:10:37 (GMT) |
| commit | 6803ff28f8b9c57ae2442c56e3e5d265f46aea15 (patch) | |
| tree | 3d42c5a262886e50772f9c7f9df06cc1d66706eb | |
| parent | 2a1ee1d970460047bd88da9638f8c1789431d9ab (diff) | |
| download | cpython-6803ff28f8b9c57ae2442c56e3e5d265f46aea15.zip cpython-6803ff28f8b9c57ae2442c56e3e5d265f46aea15.tar.gz cpython-6803ff28f8b9c57ae2442c56e3e5d265f46aea15.tar.bz2 | |
[3.9] Add soft keywords to the documentation (GH-21185) (GH-21187)
(cherry picked from commit 89e82c4)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
| -rw-r--r-- | Doc/library/keyword.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/library/keyword.rst b/Doc/library/keyword.rst index acec45c..5cae79f 100644 --- a/Doc/library/keyword.rst +++ b/Doc/library/keyword.rst @@ -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 |
