Skip to content

Commit

Permalink
Expand about soft keywords in the docs for keyword.py (GH-29139)
Browse files Browse the repository at this point in the history
Add link at the top and fix the existing links to point to the "[soft keywords](https://docs.python.org/3.10/reference/lexical_analysis.html#soft-keywords)" section created in the Python 3.10 docs.

Changes should be backported to 3.10 as well.
  • Loading branch information
wjandrea committed Oct 23, 2021
1 parent 8ce20bb commit 9e05da6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/keyword.rst
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

0 comments on commit 9e05da6

Please sign in to comment.