A rename that renames nothing
For 30 years Python's match() has only ever checked the start of a string, and version 3.15 finally ships a name that says so.
The Python 3.15 documentation now carries a two-word verdict next to re.match(), a function that has been in the language for three decades: soft deprecated. Directly beneath it sits a new function, re.prefixmatch(), which does precisely the same job under a name that admits what the job is.
"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 search()." — the Python 3.15 documentation
match() anchors the beginning of a string and nothing else. Ask it whether "123abc" is a run of digits and it says yes, because "123" is, and the rest is none of its business. Plenty of programmers read the name and assumed the whole string had to qualify, which gave them a function that agreed with them on clean input and quietly disagreed on dirty input. If you wanted a pattern found anywhere in the string, that was always search(); if you wanted the entire string to qualify, fullmatch().
Soft deprecation, defined in Python's own governance rules, is the mildest tier available: documentation only. No warning fires when you run the old name, no removal is scheduled, and the docs say outright that it is staying, because 30 years of working code depends on it. An earlier push for a real deprecation drew objections from the people who built the language. Tim Peters, who wrote the Zen of Python, noted that the name had sat there for three decades without causing most people any notable trouble; another contributor put the cost of a genuine deprecation at worldwide code churn on the scale of the Python 2 to 3 migration. What shipped is the compromise: add the honest name, leave the old one be.
A language this old cannot rename anything. It can add a synonym, change which name the manual recommends, and wait for new code to drift toward it, and that is the entire toolkit. The bill for this particular fix falls on code nobody has written yet, which is the only reason it could be sent at all.
The lenses
The facts
How this connects
Tap a node to open it