Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
doc wording tweaks jf clarity
  • Loading branch information
gpshead committed Feb 9, 2026
commit 40e6a2acef765057953c5472d20b2eac88c3209e
25 changes: 13 additions & 12 deletions Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -958,12 +958,12 @@ Functions
older Python versions.

.. versionchanged:: next
An alternate :func:`~re.prefixmatch` name with this API was added as a
more descriptive explicit name for the behavior of :func:`~re.match`. Use
it to more clearly express intent. The norm in other languages and
regular expression implementations is to use the term *match* to refer to
the behavior of what Python has always called :func:`~re.search`. See
:ref:`prefixmatch-vs-match`.
The alternate :func:`~re.prefixmatch` name of this API was added as a
more explicitly descriptive name than :func:`~re.match`. Use it to better
express intent. The norm in other languages and regular expression
implementations is to use the term *match* to refer to the behavior of
what Python has always called :func:`~re.search`.
See :ref:`prefixmatch-vs-match`.


.. function:: fullmatch(pattern, string, flags=0)
Expand Down Expand Up @@ -1313,12 +1313,12 @@ Regular Expression Objects
with older Python versions.

.. versionchanged:: next
An alternate :meth:`~Pattern.prefixmatch` name with this API was added as
a more descriptive explicit name for the behavior of
:meth:`~Pattern.match`. Use it to more clearly express intent. The norm
in other languages and regular expression implementations is to use the
term *match* to refer to the behavior of what Python has always called
:meth:`~Pattern.search`. See :ref:`prefixmatch-vs-match`.
The alternate :meth:`~Pattern.prefixmatch` name of this API was added as
a more explicitly descriptive name than :meth:`~Pattern.match`. Use it to
better express intent. The norm in other languages and regular expression
implementations is to use the term *match* to refer to the behavior of
what Python has always called :meth:`~Pattern.search`.
See :ref:`prefixmatch-vs-match`.


.. method:: Pattern.fullmatch(string[, pos[, endpos]])
Expand Down Expand Up @@ -1784,6 +1784,7 @@ this old Python gotcha.

We **do not** plan to deprecate and remove the older *match* name,
as it has been used in code for over 30 years.
Code supporting older versions of Python should continue to use *match*.

.. versionadded:: next

Expand Down
Loading