From 89e82c4a6285c89c054980591c078245a5cc6337 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Sat, 27 Jun 2020 20:00:29 +0100 Subject: [PATCH] Add soft keywords to the documentation (GH-21185) --- Doc/library/keyword.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Doc/library/keyword.rst b/Doc/library/keyword.rst index acec45cdcd5..5cae79f5dc9 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