From: Pablo Galindo Date: Sat, 27 Jun 2020 19:00:29 +0000 (+0100) Subject: Add soft keywords to the documentation (GH-21185) X-Git-Tag: v3.10.0a1~497 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89e82c4a6285c89c054980591c078245a5cc6337;p=thirdparty%2FPython%2Fcpython.git Add soft keywords to the documentation (GH-21185) --- diff --git a/Doc/library/keyword.rst b/Doc/library/keyword.rst index acec45cdcd58..5cae79f5dc9d 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