Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.9] Add soft keywords to the documentation (GH-21185) #21187

Merged
merged 1 commit into from
Jun 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Doc/library/keyword.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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