Skip to content

Expand about soft keywords in the docs for keyword.py #29139

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

Merged
merged 1 commit into from
Oct 23, 2021
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
6 changes: 3 additions & 3 deletions Doc/library/keyword.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--------------

This module allows a Python program to determine if a string is a
:ref:`keyword <keywords>`.
:ref:`keyword <keywords>` or :ref:`soft keyword <soft-keywords>`.


.. function:: iskeyword(s)
Expand All @@ -26,14 +26,14 @@ This module allows a Python program to determine if a string is a

.. function:: issoftkeyword(s)

Return ``True`` if *s* is a Python soft :ref:`keyword <keywords>`.
Return ``True`` if *s* is a Python :ref:`soft keyword <soft-keywords>`.

.. versionadded:: 3.9


.. data:: softkwlist

Sequence containing all the soft :ref:`keywords <keywords>` defined for the
Sequence containing all the :ref:`soft keywords <soft-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.

Expand Down