Skip to content

Commit 40e6a2a

Browse files
committed
doc wording tweaks jf clarity
1 parent 6bacfb0 commit 40e6a2a

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

Doc/library/re.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -958,12 +958,12 @@ Functions
958958
older Python versions.
959959

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

968968

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

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

13231323

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

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

17881789
.. versionadded:: next
17891790

0 commit comments

Comments
 (0)