René's URL Explorer Experiment


Title: Soft deprecate `re.match` and `re.Pattern.match` in favour of `prefixmatch` · Issue #148100 · python/cpython · GitHub

Open Graph Title: Soft deprecate `re.match` and `re.Pattern.match` in favour of `prefixmatch` · Issue #148100 · python/cpython

X Title: Soft deprecate `re.match` and `re.Pattern.match` in favour of `prefixmatch` · Issue #148100 · python/cpython

Description: Feature or enhancement Proposal: In #86519 (PR #31137), we added new re.prefixmatch and re.Pattern.prefixmatch as explicit names for re.match and re.Pattern.match, because it's really not obvious the shorter old names include a prefix an...

Open Graph Description: Feature or enhancement Proposal: In #86519 (PR #31137), we added new re.prefixmatch and re.Pattern.prefixmatch as explicit names for re.match and re.Pattern.match, because it's really not obvious t...

X Description: Feature or enhancement Proposal: In #86519 (PR #31137), we added new re.prefixmatch and re.Pattern.prefixmatch as explicit names for re.match and re.Pattern.match, because it's really not obvio...

Opengraph URL: https://github.com/python/cpython/issues/148100

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Soft deprecate `re.match` and `re.Pattern.match` in favour of `prefixmatch`","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nIn https://github.com/python/cpython/issues/86519 (PR https://github.com/python/cpython/pull/31137), we added new `re.prefixmatch` and `re.Pattern.prefixmatch` as explicit names for `re.match` and `re.Pattern.match`, because it's really not obvious the shorter old names include a prefix anchor; you probably meant to use `search` (no anchors) or `fullmatch` (prefix and suffix anchors).\n\nThis is essentially a [soft deprecation](https://docs.python.org/3/glossary.html#term-soft-deprecated) of the `match` names:\n\n* It's okay to use the old name in old code, but prefer the new name in new code.\n* We don't plan on removing the old name or emitting deprecation warnings.\n\nLet's make this explicit.\n\n\n### Has this already been discussed elsewhere?\n\nNo response given\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-148101\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/hugovk","@type":"Person","name":"hugovk"},"datePublished":"2026-04-04T17:20:13Z","url":"https://github.com/python/cpython/issues/148100"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f1a68403-736e-f1de-ff8e-e55296809692
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD262:2E124E:39E6F25:49F9FCD:6B020952
html-safe-nonce5148eec7fe41894a5fa73fec74946d1b72133f3208072fbdb72336d4965e038b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjYyOjJFMTI0RTozOUU2RjI1OjQ5RjlGQ0Q6NkIwMjA5NTIiLCJ2aXNpdG9yX2lkIjoiODc5ODgwODY2MjA4Mjg3MDU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac182e9f333d9316b68ce8c3293e31372066840617d94b4d8ff966ea0f3796b50f
hovercard-subject-tagissue:4205398868
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/148100/issue_layout
twitter:imagehttps://opengraph.githubassets.com/206d002c6494ecec907ae4fe225a412f088f74966c822a56cbd43a3f6ba5f1be/python/cpython/issues/148100
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/206d002c6494ecec907ae4fe225a412f088f74966c822a56cbd43a3f6ba5f1be/python/cpython/issues/148100
og:image:altFeature or enhancement Proposal: In #86519 (PR #31137), we added new re.prefixmatch and re.Pattern.prefixmatch as explicit names for re.match and re.Pattern.match, because it's really not obvious t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehugovk
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/148100#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F148100
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F148100
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/148100
Reloadhttps://github.com/python/cpython/issues/148100
Reloadhttps://github.com/python/cpython/issues/148100
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/148100
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/148100
Soft deprecate re.match and re.Pattern.match in favour of prefixmatchhttps://github.com/python/cpython/issues/148100#top
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-regexhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-regex%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/hugovk
hugovkhttps://github.com/hugovk
on Apr 4, 2026https://github.com/python/cpython/issues/148100#issue-4205398868
#86519https://github.com/python/cpython/issues/86519
#31137https://github.com/python/cpython/pull/31137
soft deprecationhttps://docs.python.org/3/glossary.html#term-soft-deprecated
gh-148100: Soft deprecate re.match and re.Pattern.match in favour of prefixmatch #148101https://github.com/python/cpython/pull/148101
hugovkhttps://github.com/hugovk
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
on Apr 4, 2026https://github.com/python/cpython/issues/148100#event-24198677133
picnixzhttps://github.com/picnixz
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
on Apr 4, 2026https://github.com/python/cpython/issues/148100#event-24198684665
StanFromIrelandhttps://github.com/StanFromIreland
topic-regexhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-regex%22
on Apr 4, 2026https://github.com/python/cpython/issues/148100#event-24198692109
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 4, 2026https://github.com/python/cpython/issues/148100#issuecomment-4187607289
https://github.com/hugovk
hugovkhttps://github.com/hugovk
on Apr 4, 2026https://github.com/python/cpython/issues/148100#issuecomment-4187797767
soft deprecationhttps://peps.python.org/pep-0387/#soft-deprecation
#31137https://github.com/python/cpython/pull/31137
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 5, 2026https://github.com/python/cpython/issues/148100#issuecomment-4188975236
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
on Apr 7, 2026https://github.com/python/cpython/issues/148100#issuecomment-4195835052
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 7, 2026https://github.com/python/cpython/issues/148100#issuecomment-4197181149
https://github.com/ambv
ambvhttps://github.com/ambv
on Apr 7, 2026https://github.com/python/cpython/issues/148100#issuecomment-4199198645
docs around soft deprecationhttps://peps.python.org/pep-0387/#soft-deprecation
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 9, 2026https://github.com/python/cpython/issues/148100#issuecomment-4213600291
https://github.com/hugovk
hugovkhttps://github.com/hugovk
on Apr 9, 2026https://github.com/python/cpython/issues/148100#issuecomment-4215976070
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 9, 2026https://github.com/python/cpython/issues/148100#issuecomment-4216309517
https://github.com/mpkocher
mpkocherhttps://github.com/mpkocher
on Apr 12, 2026https://github.com/python/cpython/issues/148100#issuecomment-4232969159
#83162https://github.com/python/cpython/issues/83162
hugovkhttps://github.com/hugovk
on Apr 15, 2026https://github.com/python/cpython/issues/148100#event-24542961692
gh-148100: Soft deprecate `re.match` and `re.Pattern.match` in favour…https://github.com/python/cpython/commit/eb2f634b831ae235c2ebd4cbeab97a40e7d8724e
gh-148100https://github.com/python/cpython/issues/148100
eb2f634https://github.com/python/cpython/commit/eb2f634b831ae235c2ebd4cbeab97a40e7d8724e
https://github.com/hugovk
hugovkhttps://github.com/hugovk
on Apr 15, 2026https://github.com/python/cpython/issues/148100#issuecomment-4255191385
#148630https://github.com/python/cpython/pull/148630
hugovkhttps://github.com/hugovk
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 15, 2026https://github.com/python/cpython/issues/148100#event-24543268635
ljfphttps://github.com/ljfp
on Apr 25, 2026https://github.com/python/cpython/issues/148100#event-24868341523
pythongh-148100: Soft deprecate `re.match` and `re.Pattern.match` in …https://github.com/ljfp/cpython/commit/e9eedd994281e1bb52c0f411016fc528400ecbd9
pythongh-148100https://github.com/python/cpython/issues/148100
e9eedd9https://github.com/ljfp/cpython/commit/e9eedd994281e1bb52c0f411016fc528400ecbd9
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/148100
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/148100
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-regexhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-regex%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.