From 6803ff28f8b9c57ae2442c56e3e5d265f46aea15 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Sun, 28 Jun 2020 02:10:37 +0100 Subject: [3.9] Add soft keywords to the documentation (GH-21185) (GH-21187) (cherry picked from commit 89e82c4) Co-authored-by: Pablo Galindo --- Doc/library/keyword.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 ` 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 `. + + .. versionadded:: 3.9 + + +.. data:: softkwlist + + Sequence containing all the soft :ref:`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 -- cgit v0.12