Skip to content

Commit 58d8f57

Browse files
gpsheadclaude
andcommitted
Update match name removal language to be definitive
- Change "25 years" to "30 years" to reflect actual time - Replace speculative "this decade, if ever" / "7 years" language with clear statement that we will never remove the original match name Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e176692 commit 58d8f57

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Doc/library/re.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,8 +1788,8 @@ understand the intended semantics. When reading :func:`~re.match` there remains
17881788
a seed of doubt about the intended behavior to anyone not already familiar with
17891789
this old Python gotcha.
17901790

1791-
We **do not** plan to deprecate and remove the older *match* name in this
1792-
decade, if ever, as it has been used in code for over 25 years.
1791+
We will **never** remove the original :func:`~re.match` name, as it has been
1792+
used in code for over 30 years.
17931793

17941794
.. versionadded:: next
17951795

Misc/NEWS.d/next/Library/2022-02-05-00-15-03.bpo-42353.0ebVGG.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ the term "match" to mean what Python uses the term "search" for. The
77
unadorened "match" name in Python has been a frequent case of confusion and
88
coding bugs due to the inconsistency with the rest if the software industry.
99

10-
No plans to remove and deprecate the existing ``match`` names exist. If that
11-
were to happen it would be at minimum 7 years in the future.
10+
We will never remove the original ``match`` name.

0 commit comments

Comments
 (0)