| react-profiling | 0 |
| react-import-map | react,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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:fb555a27-9f5c-a924-c347-1692e444c345 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8810:7A60E:3DD51A6:4F3F7F8:6B021022 |
| html-safe-nonce | 558eff2338465d27b0d839a82c208ce41c44ea46fdcafe15dcb9bce123aaac55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODEwOjdBNjBFOjNERDUxQTY6NEYzRjdGODo2QjAyMTAyMiIsInZpc2l0b3JfaWQiOiI4NTM1NjM2OTk4NzYzOTc0NjkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 123d876c453a48d33223769cbed90ad8b6aec23846324e2dd2c1ee0fe2eedda9 |
| hovercard-subject-tag | pull_request:840746777 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/31137/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/e034261afe1d55805db490904122ddc302fe3439c932883834778afc5e1811f4/python/cpython/pull/31137 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e034261afe1d55805db490904122ddc302fe3439c932883834778afc5e1811f4/python/cpython/pull/31137 |
| og:image:alt | Adds prefixmatch APIs to the re module as an alternate name for our long existing match APIs to help alleviate a common Python confusion for those coming from other languages regular expression lib... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gpshead |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/31137#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31137 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31137 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/31137 |
| Reload | https://github.com/python/cpython/pull/31137 |
| Reload | https://github.com/python/cpython/pull/31137 |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| gpshead | https://github.com/gpshead |
| python:main | https://github.com/python/cpython/tree/main |
| gpshead:prefixmatch-b42353 | https://github.com/gpshead/cpython/tree/prefixmatch-b42353 |
| Conversation | https://github.com/python/cpython/pull/31137 |
| Commits19 (19) | https://github.com/python/cpython/pull/31137/commits |
| Checks | https://github.com/python/cpython/pull/31137/checks |
| Files changed | https://github.com/python/cpython/pull/31137/files |
| gh-86519: Add prefixmatch APIs to the re module | https://github.com/python/cpython/pull/31137#top |
| gpshead | https://github.com/gpshead |
| python:main | https://github.com/python/cpython/tree/main |
| gpshead:prefixmatch-b42353 | https://github.com/gpshead/cpython/tree/prefixmatch-b42353 |
|
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| Feb 5, 2022 | https://github.com/python/cpython/pull/31137#issue-1124776543 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927 | https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927 |
| Proposal: re.prefixmatch method (alias for re.match) #86519 | https://github.com/python/cpython/issues/86519 |
| https://cpython-previews--31137.org.readthedocs.build/en/31137/ | https://cpython-previews--31137.org.readthedocs.build/en/31137/ |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
|
| https://github.com/gpshead |
| bpo-42353: Add prefixmatch APIs to the re module. | https://github.com/python/cpython/pull/31137/commits/587dc4d74eae7f71381fd70a34663ca9ef65b8a9 |
| 587dc4d | https://github.com/python/cpython/pull/31137/commits/587dc4d74eae7f71381fd70a34663ca9ef65b8a9 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
|
type-feature
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature |
| Feb 5, 2022 | https://github.com/python/cpython/pull/31137#event-6012845301 |
| https://github.com/the-knights-who-say-ni |
| the-knights-who-say-ni | https://github.com/the-knights-who-say-ni |
|
CLA signed
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22 |
| Feb 5, 2022 | https://github.com/python/cpython/pull/31137#event-6012845339 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Feb 5, 2022 | https://github.com/python/cpython/pull/31137#event-6012845370 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
|
DO-NOT-MERGE
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE |
| Feb 17, 2022 | https://github.com/python/cpython/pull/31137#event-6087134145 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
|
Jul 7, 2022
| https://github.com/python/cpython/pull/31137#ref-issue-1199047349 |
|
Proposal: re.prefixmatch method (alias for re.match)
#86519
| https://github.com/python/cpython/issues/86519 |
| https://github.com/ezio-melotti |
| ezio-melotti | https://github.com/ezio-melotti |
|
CLA signed
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22 |
| Jul 13, 2022 | https://github.com/python/cpython/pull/31137#event-6988862155 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| January 30, 2023 05:20 | https://github.com/python/cpython/pull/31137#event-8384250416 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| Jan 30, 2023 | https://github.com/python/cpython/pull/31137#event-8384253020 |
| gpshead | https://github.com/gpshead |
| January 29, 2023 22:45 | https://github.com/python/cpython/pull/31137#commits-pushed-c7d1581 |
|
| https://github.com/gpshead |
| Merge branch 'main' into prefixmatch-b42353 | https://github.com/python/cpython/pull/31137/commits/c7d1581508c8379f6014f865df9236cb74c7e192 |
| c7d1581 | https://github.com/python/cpython/pull/31137/commits/c7d1581508c8379f6014f865df9236cb74c7e192 |
|
| https://github.com/gpshead |
| fix editor fat finger typo during the merge. #vim | https://github.com/python/cpython/pull/31137/commits/fa2885eccd72a3e6ec33721b459ad13358b9034a |
| fa2885e | https://github.com/python/cpython/pull/31137/commits/fa2885eccd72a3e6ec33721b459ad13358b9034a |
|
| https://github.com/gpshead |
| 3.12 | https://github.com/python/cpython/pull/31137/commits/6195ad74fc9b48764c9f77209663f2d658773ad6 |
| 6195ad7 | https://github.com/python/cpython/pull/31137/commits/6195ad74fc9b48764c9f77209663f2d658773ad6 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
|
DO-NOT-MERGE
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE |
| Jan 30, 2023 | https://github.com/python/cpython/pull/31137#event-8384716547 |
|
| https://github.com/hauntsaninja |
| Merge branch 'main' into prefixmatch-b42353 | https://github.com/python/cpython/pull/31137/commits/0296f29188aefa81b13c76b71d5a059dfae63d6f |
| 0296f29 | https://github.com/python/cpython/pull/31137/commits/0296f29188aefa81b13c76b71d5a059dfae63d6f |
| https://github.com/apps/python-cla-bot |
| python-cla-bot | https://github.com/apps/python-cla-bot |
| Apr 18, 2025 | https://github.com/python/cpython/pull/31137#issuecomment-2815097144 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://cla.python.org/ |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
|
| https://github.com/gpshead |
| Merge main and modernize the relevant docs. | https://github.com/python/cpython/pull/31137/commits/bab8e8b06ba9f066047291f022e23e8180dc833e |
| bab8e8b | https://github.com/python/cpython/pull/31137/commits/bab8e8b06ba9f066047291f022e23e8180dc833e |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| force-pushed | https://github.com/python/cpython/compare/554bb41d3712cceb53f42bcbece92ae1401d0496..54c77cab6da84b7e3e3c2c9c3b02cec9a0ac620b |
| 554bb41 | https://github.com/python/cpython/commit/554bb41d3712cceb53f42bcbece92ae1401d0496 |
| 54c77ca | https://github.com/python/cpython/commit/54c77cab6da84b7e3e3c2c9c3b02cec9a0ac620b |
|
Compare
| https://github.com/python/cpython/compare/554bb41d3712cceb53f42bcbece92ae1401d0496..54c77cab6da84b7e3e3c2c9c3b02cec9a0ac620b |
| April 19, 2025 01:09 | https://github.com/python/cpython/pull/31137#event-17326595396 |
|
| https://github.com/gpshead |
| Simplify, don't have duplicate definitions. | https://github.com/python/cpython/pull/31137/commits/149f6e4751f20c9a5acd12da3e4b21138d6c7faf |
| 149f6e4 | https://github.com/python/cpython/pull/31137/commits/149f6e4751f20c9a5acd12da3e4b21138d6c7faf |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| force-pushed | https://github.com/python/cpython/compare/54c77cab6da84b7e3e3c2c9c3b02cec9a0ac620b..149f6e4751f20c9a5acd12da3e4b21138d6c7faf |
| 54c77ca | https://github.com/python/cpython/commit/54c77cab6da84b7e3e3c2c9c3b02cec9a0ac620b |
| 149f6e4 | https://github.com/python/cpython/commit/149f6e4751f20c9a5acd12da3e4b21138d6c7faf |
|
Compare
| https://github.com/python/cpython/compare/54c77cab6da84b7e3e3c2c9c3b02cec9a0ac620b..149f6e4751f20c9a5acd12da3e4b21138d6c7faf |
| April 19, 2025 01:20 | https://github.com/python/cpython/pull/31137#event-17326650547 |
| https://github.com/hugovk |
| hugovk | https://github.com/hugovk |
|
Jan 30, 2026
| https://github.com/python/cpython/pull/31137#ref-pullrequest-3876685067 |
|
FURB167: change example to re.search with ^ anchor
astral-sh/ruff#22984
| https://github.com/astral-sh/ruff/pull/22984 |
| ntBre | https://github.com/ntBre |
|
Jan 30, 2026
| https://github.com/python/cpython/pull/31137#ref-commit-38d4f49 |
|
| https://github.com/hugovk |
| FURB167: change example to | https://github.com/astral-sh/ruff/commit/38d4f4917682f565ccc507065be382007355f90b |
| re.search | https://github.com/astral-sh/ruff/commit/38d4f4917682f565ccc507065be382007355f90b |
| with | https://github.com/astral-sh/ruff/commit/38d4f4917682f565ccc507065be382007355f90b |
| ^ | https://github.com/astral-sh/ruff/commit/38d4f4917682f565ccc507065be382007355f90b |
| anchor ( | https://github.com/astral-sh/ruff/commit/38d4f4917682f565ccc507065be382007355f90b |
| #22984 | https://github.com/astral-sh/ruff/pull/22984 |
| ) | https://github.com/astral-sh/ruff/commit/38d4f4917682f565ccc507065be382007355f90b |
| 38d4f49 | https://github.com/astral-sh/ruff/commit/38d4f4917682f565ccc507065be382007355f90b |
| https://docs.astral.sh/ruff/rules/regex-flag-alias/#regex-flag-alias-furb167 | https://docs.astral.sh/ruff/rules/regex-flag-alias/#regex-flag-alias-furb167 |
| https://docs.python.org/3/library/re.html#search-vs-match | https://docs.python.org/3/library/re.html#search-vs-match |
| https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927 | https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927 |
| python/cpython#86519 | https://github.com/python/cpython/issues/86519 |
| python/cpython#31137 | https://github.com/python/cpython/pull/31137 |
| https://github.com/hugovk/ruff/actions/runs/21524112749 | https://github.com/hugovk/ruff/actions/runs/21524112749 |
| gpshead | https://github.com/gpshead |
| January 31, 2026 15:18 | https://github.com/python/cpython/pull/31137#commits-pushed-e176692 |
|
| https://github.com/gpshead |
| Merge main into prefixmatch-b42353 | https://github.com/python/cpython/pull/31137/commits/e1766928776b7bfe0d3efb283d156d5c9af86e41 |
| e176692 | https://github.com/python/cpython/pull/31137/commits/e1766928776b7bfe0d3efb283d156d5c9af86e41 |
|
| https://github.com/gpshead |
|
| https://github.com/claude |
| Update match name removal language to be definitive | https://github.com/python/cpython/pull/31137/commits/58d8f579c97918f142bfa4b0bd6fbd4c336c41b8 |
| 58d8f57 | https://github.com/python/cpython/pull/31137/commits/58d8f579c97918f142bfa4b0bd6fbd4c336c41b8 |
|
| https://github.com/gpshead |
|
| https://github.com/claude |
| Fix re.rst examples after match to search conversion | https://github.com/python/cpython/pull/31137/commits/3cd9d7170b02515aad5906d7566ef2c4bf5a0d0e |
| 3cd9d71 | https://github.com/python/cpython/pull/31137/commits/3cd9d7170b02515aad5906d7566ef2c4bf5a0d0e |
|
| https://github.com/gpshead |
| Replace name-parsing examples with Monty Python references | https://github.com/python/cpython/pull/31137/commits/d6090bb003f1f5f5144c5c541eaf97355f59537f |
| d6090bb | https://github.com/python/cpython/pull/31137/commits/d6090bb003f1f5f5144c5c541eaf97355f59537f |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| February 1, 2026 00:12 | https://github.com/python/cpython/pull/31137#event-22435550826 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| AA-Turner | https://github.com/AA-Turner |
| code owner | https://github.com/python/cpython/blob/ccbe41e27cdb441033189f06148c23528275214b/.github/CODEOWNERS#L114 |
| February 1, 2026 00:12 | https://github.com/python/cpython/pull/31137#event-22435550949 |
| https://github.com/hauntsaninja |
| hauntsaninja | https://github.com/hauntsaninja |
|
Feb 8, 2026
| https://github.com/python/cpython/pull/31137#pullrequestreview-3769137087 |
|
View reviewed changes
| https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f |
| hauntsaninja | https://github.com/hauntsaninja |
| https://github.com/python/cpython/pull/31137#pullrequestreview-3769137087 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Modules/_sre/sre.c | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-b715247383fe7eb29c4592bf02da337a5ed85dfcbb4862bf3f5d4f2537dce22d |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Feb 8, 2026 | https://github.com/python/cpython/pull/31137#event-22620224333 |
| https://github.com/hauntsaninja |
| hauntsaninja | https://github.com/hauntsaninja |
|
Feb 8, 2026
| https://github.com/python/cpython/pull/31137#pullrequestreview-3769140493 |
|
View reviewed changes
| https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f |
| Doc/library/re.rst | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-fca5ee281345c4577087eadc6d85e52a6391e794eef2b7f78356d047f3b78957 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://github.com/picnixz |
| picnixz | https://github.com/picnixz |
| Feb 8, 2026 | https://github.com/python/cpython/pull/31137#issuecomment-3866866705 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://github.com/picnixz |
| picnixz | https://github.com/picnixz |
|
Feb 8, 2026
| https://github.com/python/cpython/pull/31137#pullrequestreview-3769507898 |
|
View reviewed changes
| https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f |
| Lib/test/test_re.py | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-8e462ca5167ec7a83a5710c179ef56cbae19cd614303fbcf2ec33fd9db914e2a |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://github.com/hugovk |
| hugovk | https://github.com/hugovk |
| Feb 8, 2026 | https://github.com/python/cpython/pull/31137#issuecomment-3868224348 |
| https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927/20 | https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927/20 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://github.com/hugovk |
| hugovk | https://github.com/hugovk |
|
Feb 8, 2026
| https://github.com/python/cpython/pull/31137#pullrequestreview-3729062990 |
|
View reviewed changes
| https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f |
| hugovk | https://github.com/hugovk |
| https://github.com/python/cpython/pull/31137#pullrequestreview-3729062990 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Doc/library/re.rst | https://github.com/python/cpython/pull/31137/files/149f6e4751f20c9a5acd12da3e4b21138d6c7faf#diff-fca5ee281345c4577087eadc6d85e52a6391e794eef2b7f78356d047f3b78957 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Doc/library/re.rst | https://github.com/python/cpython/pull/31137/files/149f6e4751f20c9a5acd12da3e4b21138d6c7faf#diff-fca5ee281345c4577087eadc6d85e52a6391e794eef2b7f78356d047f3b78957 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Doc/library/re.rst | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-fca5ee281345c4577087eadc6d85e52a6391e794eef2b7f78356d047f3b78957 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Doc/library/re.rst | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-fca5ee281345c4577087eadc6d85e52a6391e794eef2b7f78356d047f3b78957 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Doc/library/re.rst | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-fca5ee281345c4577087eadc6d85e52a6391e794eef2b7f78356d047f3b78957 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Doc/library/re.rst | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-fca5ee281345c4577087eadc6d85e52a6391e794eef2b7f78356d047f3b78957 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Doc/library/re.rst | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-fca5ee281345c4577087eadc6d85e52a6391e794eef2b7f78356d047f3b78957 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Doc/library/re.rst | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-fca5ee281345c4577087eadc6d85e52a6391e794eef2b7f78356d047f3b78957 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Doc/whatsnew/3.15.rst | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| Lib/re/__init__.py | https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f#diff-57c2a59def025dd119080dba7f4aa64e9ddb1e36ca8b1e71eeea6b6dc3b6c0fe |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://github.com/picnixz |
| picnixz | https://github.com/picnixz |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| February 8, 2026 21:59 | https://github.com/python/cpython/pull/31137#event-22627958984 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| Feb 8, 2026 | https://github.com/python/cpython/pull/31137#issuecomment-3868559543 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| gpshead | https://github.com/gpshead |
| February 9, 2026 00:05 | https://github.com/python/cpython/pull/31137#commits-pushed-341972f |
|
| https://github.com/gpshead |
|
| https://github.com/claude |
| Address reviewer docs feedback: prefer prefixmatch throughout | https://github.com/python/cpython/pull/31137/commits/341972fb81371c41ba5be563a97034553b19c762 |
| 341972f | https://github.com/python/cpython/pull/31137/commits/341972fb81371c41ba5be563a97034553b19c762 |
|
| https://github.com/gpshead |
|
| https://github.com/claude |
| Statically alias match to prefixmatch instead of runtime memcpy | https://github.com/python/cpython/pull/31137/commits/cd8d85db96cb0f55eb03dab94b6182d19a6e72b6 |
| cd8d85d | https://github.com/python/cpython/pull/31137/commits/cd8d85db96cb0f55eb03dab94b6182d19a6e72b6 |
|
| https://github.com/gpshead |
| Merge main into prefixmatch-b42353 | https://github.com/python/cpython/pull/31137/commits/74d51b39e42752b2f3e755e1f514162041066362 |
| 74d51b3 | https://github.com/python/cpython/pull/31137/commits/74d51b39e42752b2f3e755e1f514162041066362 |
|
| https://github.com/gpshead |
|
| https://github.com/claude |
| Fix whatsnew 3.15 RST heading that matches git conflict marker | https://github.com/python/cpython/pull/31137/commits/4abdff062ffdada0ea3f8275d09525edfb0bf480 |
| 4abdff0 | https://github.com/python/cpython/pull/31137/commits/4abdff062ffdada0ea3f8275d09525edfb0bf480 |
|
| https://github.com/gpshead |
| docs, remove errant "if ever" | https://github.com/python/cpython/pull/31137/commits/6bacfb04792d01734a4b1676e5326c7ffece08ae |
| 6bacfb0 | https://github.com/python/cpython/pull/31137/commits/6bacfb04792d01734a4b1676e5326c7ffece08ae |
|
| https://github.com/gpshead |
| doc wording tweaks jf clarity | https://github.com/python/cpython/pull/31137/commits/40e6a2acef765057953c5472d20b2eac88c3209e |
| 40e6a2a | https://github.com/python/cpython/pull/31137/commits/40e6a2acef765057953c5472d20b2eac88c3209e |
|
| https://github.com/gpshead |
|
| https://github.com/claude |
| Extract do_test_match_getitem helper to preserve git blame | https://github.com/python/cpython/pull/31137/commits/b3c694858de5d67b18aee9481085e4e5559a121b |
| b3c6948 | https://github.com/python/cpython/pull/31137/commits/b3c694858de5d67b18aee9481085e4e5559a121b |
|
| https://github.com/gpshead |
| tweak news to match docs | https://github.com/python/cpython/pull/31137/commits/b27798110364c43457f633a9b100ceb58b448733 |
| b277981 | https://github.com/python/cpython/pull/31137/commits/b27798110364c43457f633a9b100ceb58b448733 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| Feb 9, 2026 | https://github.com/python/cpython/pull/31137#event-22630160134 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| 300de1e | https://github.com/python/cpython/commit/300de1e98ac236bc887b49c0fbd7398266237b36 |
| Feb 16, 2026 | https://github.com/python/cpython/pull/31137#event-22811854121 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Feb 16, 2026 | https://github.com/python/cpython/pull/31137#event-22811855016 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| Feb 16, 2026 | https://github.com/python/cpython/pull/31137#issuecomment-3906036463 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
|
Feb 16, 2026
| https://github.com/python/cpython/pull/31137#ref-issue-3945479337 |
|
Add an explicit prefixmatch API name for match for parity CPython 3.15
mrabarnett/mrab-regex#601
| https://github.com/mrabarnett/mrab-regex/issues/601 |
| brijkapadia | https://github.com/brijkapadia |
|
Feb 28, 2026
| https://github.com/python/cpython/pull/31137#ref-commit-22df6fe |
|
| https://github.com/gpshead |
|
| https://github.com/claude |
|
| https://github.com/hauntsaninja |
|
| https://github.com/brijkapadia |
| pythongh-86519 | https://github.com/python/cpython/issues/86519 |
| : Add prefixmatch APIs to the re module ( | https://github.com/brijkapadia/cpython/commit/22df6fe25867199ff1db208f0d5af0c3d5857d5b |
| pythonGH-31137 | https://github.com/python/cpython/pull/31137 |
| ) | https://github.com/brijkapadia/cpython/commit/22df6fe25867199ff1db208f0d5af0c3d5857d5b |
| 22df6fe | https://github.com/brijkapadia/cpython/commit/22df6fe25867199ff1db208f0d5af0c3d5857d5b |
| https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927 | https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
|
Mar 18, 2026
| https://github.com/python/cpython/pull/31137#ref-pullrequest-4095267694 |
|
Update test_validators.py for Python 3.15a7
python-attrs/attrs#1530
| https://github.com/python-attrs/attrs/pull/1530 |
| https://github.com/hugovk |
| hugovk | https://github.com/hugovk |
| Apr 4, 2026 | https://github.com/python/cpython/pull/31137#issuecomment-4187329380 |
| #148096 | https://github.com/python/cpython/pull/148096 |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
| https://github.com/hugovk |
| hugovk | https://github.com/hugovk |
|
Apr 4, 2026
| https://github.com/python/cpython/pull/31137#ref-issue-4205398868 |
|
Soft deprecate re.match and re.Pattern.match in favour of prefixmatch
#148100
| https://github.com/python/cpython/issues/148100 |
| ljfp | https://github.com/ljfp |
|
Apr 25, 2026
| https://github.com/python/cpython/pull/31137#ref-commit-a8c1cbc |
|
| https://github.com/gpshead |
|
| https://github.com/claude |
|
| https://github.com/hauntsaninja |
|
| https://github.com/ljfp |
| pythongh-86519 | https://github.com/python/cpython/issues/86519 |
| : Add prefixmatch APIs to the re module ( | https://github.com/ljfp/cpython/commit/a8c1cbc51a11fcbc662f1fccc5a1caf4a699a7d8 |
| pythonGH-31137 | https://github.com/python/cpython/pull/31137 |
| ) | https://github.com/ljfp/cpython/commit/a8c1cbc51a11fcbc662f1fccc5a1caf4a699a7d8 |
| a8c1cbc | https://github.com/ljfp/cpython/commit/a8c1cbc51a11fcbc662f1fccc5a1caf4a699a7d8 |
| https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927 | https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927 |
| KotlinIsland | https://github.com/KotlinIsland |
|
May 1, 2026
| https://github.com/python/cpython/pull/31137#ref-commit-730e469 |
|
| https://github.com/hugovk |
| FURB167: change example to re.search with ^ anchor (#22984) | https://github.com/KotlinIsland/basedpython/commit/730e4697d997a799e6747901dca384cf4d6bf757 |
| 730e469 | https://github.com/KotlinIsland/basedpython/commit/730e4697d997a799e6747901dca384cf4d6bf757 |
| https://docs.astral.sh/ruff/rules/regex-flag-alias/#regex-flag-alias-furb167 | https://docs.astral.sh/ruff/rules/regex-flag-alias/#regex-flag-alias-furb167 |
| https://docs.python.org/3/library/re.html#search-vs-match | https://docs.python.org/3/library/re.html#search-vs-match |
| https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927 | https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927 |
| python/cpython#86519 | https://github.com/python/cpython/issues/86519 |
| python/cpython#31137 | https://github.com/python/cpython/pull/31137 |
| https://github.com/hugovk/ruff/actions/runs/21524112749 | https://github.com/hugovk/ruff/actions/runs/21524112749 |
| https://github.com/samhaese |
| samhaese | https://github.com/samhaese |
|
Jun 2, 2026
| https://github.com/python/cpython/pull/31137#ref-pullrequest-4574479959 |
|
(skip issue) Respect Isaac Newton and Malcolm Reynolds by reverting their removal in #31137
#150807
| https://github.com/python/cpython/pull/150807 |
| decorator-factory | https://github.com/decorator-factory |
|
Aug 8, 2026
| https://github.com/python/cpython/pull/31137#ref-commit-9d8f49d |
|
| https://github.com/decorator-factory |
| Acknowledge the match -> prefixmatch change | https://github.com/decorator-factory/python-re-quiz/commit/9d8f49da362a5d5fedec55e746ea33df941e93ed |
| 9d8f49d | https://github.com/decorator-factory/python-re-quiz/commit/9d8f49da362a5d5fedec55e746ea33df941e93ed |
| python/cpython#31137 | https://github.com/python/cpython/pull/31137 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31137 |
|
| https://github.com/picnixz |
|
picnixz
| https://github.com/picnixz |
|
| https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f |
|
| https://github.com/hauntsaninja |
|
hauntsaninja
| https://github.com/hauntsaninja |
|
| https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f |
|
| https://github.com/hugovk |
|
hugovk
| https://github.com/hugovk |
|
| https://github.com/python/cpython/pull/31137/files/d6090bb003f1f5f5144c5c541eaf97355f59537f |
|
| https://github.com/AA-Turner |
|
AA-Turner
| https://github.com/AA-Turner |
|
| https://github.com/serhiy-storchaka |
|
serhiy-storchaka
| https://github.com/serhiy-storchaka |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
|
| https://github.com/gpshead |
|
gpshead
| https://github.com/gpshead |
|
type-feature
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature |
| Please reload this page | https://github.com/python/cpython/pull/31137 |
|
| https://github.com/gpshead |
|
| https://github.com/picnixz |
|
| https://github.com/hugovk |
|
| https://github.com/hauntsaninja |
|
| https://github.com/the-knights-who-say-ni |
|
| https://github.com/ezio-melotti |
|
| https://github.com/bedevere-bot |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |