Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-86519: Add prefixmatch APIs to the re module#31137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
587dc4dc7d1581fa2885e6195ad70296f29bab8e8b149f6e4e17669258d8f573cd9d71d6090bb341972fcd8d85d74d51b34abdff06bacfb040e6a2ab3c6948b277981File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| The :mod:`re` module gains a new :func:`re.prefixmatch` function as an | ||
| explicit spelling of what has to date always been known as :func:`re.match`. | ||
| :class:`re.Pattern` similary gains a :meth:`re.Pattern.prefixmatch` method. | ||
| Why? Explicit is better than implicit. Other widely used languages all use | ||
| 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. | ||
| We do not plan to deprecate and remove the older ``match`` name. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.