Skip to content
Merged
Show file tree
Hide file tree
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
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>
  • Loading branch information
gpshead and claude committed Jan 31, 2026
commit 58d8f579c97918f142bfa4b0bd6fbd4c336c41b8
4 changes: 2 additions & 2 deletions Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1788,8 +1788,8 @@ understand the intended semantics. When reading :func:`~re.match` there remains
a seed of doubt about the intended behavior to anyone not already familiar with
this old Python gotcha.

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

.. versionadded:: next

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ the term "match" to mean what Python uses the term "search" for. The
unadorened "match" name in Python has been a frequent case of confusion and
coding bugs due to the inconsistency with the rest if the software industry.

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