Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-56166: Deprecate passing confusing positional arguments in re functions#107778
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
hauntsaninja merged 2 commits intopython:mainfromserhiy-storchaka:re-deprecate-positional-argsAug 16, 2023
Merged
gh-56166: Deprecate passing confusing positional arguments in re functions#107778
hauntsaninja merged 2 commits intopython:mainfromserhiy-storchaka:re-deprecate-positional-argsAug 16, 2023
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
…e functionsDeprecate passing optional arguments maxsplit, count and flags inmodule-level functions re.split(), re.sub() and re.subn() as positional.They should only be passed by keyword.
d7238ab
to862a379
Comparehauntsaninja approved these changesAug 8, 2023
Thank you! |
miketheman added a commit to miketheman/pytest-postgresql that referenced this pull requestDec 26, 2024
In Python 3.13, usage of a positional argument for `maxsplit` has beenformally deprecated.Refs:python/cpython#107778Signed-off-by: Mike Fiedler <miketheman@gmail.com>
1 task
aarongable pushed a commit to chromium/chromium that referenced this pull requestFeb 25, 2025
…/third_party/crashpad/update.py:231: DeprecationWarning: 'count' is passed as positional argument readme_content_new = re.sub(https://docs.python.org/3/library/re.html:> Deprecated since version 3.13: Passing count and flags as positional> arguments is deprecated. In future Python versions they will be> keyword-only parameters.python/cpython#56166,python/cpython#107778,https://docs.python.org/3/whatsnew/3.13.html#:~:text=gh%2D66543.)-,re%3A,-Deprecate%20passing%20theChange-Id: Id7909960a107163753ccceb5ebe66c639fe02833Reviewed-on:https://chromium-review.googlesource.com/c/chromium/src/+/6297851Commit-Queue: Peter Boström <pbos@chromium.org>Auto-Submit: Mark Mentovai <mark@chromium.org>Reviewed-by: Peter Boström <pbos@chromium.org>Cr-Commit-Position: refs/heads/main@{#1424251}
hubot pushed a commit to chromium/crashpad that referenced this pull requestFeb 25, 2025
https://docs.python.org/3/library/re.html:> Deprecated since version 3.13: Passing count and flags as positional> arguments is deprecated. In future Python versions they will be> keyword-only parameters.python/cpython#56166,python/cpython#107778,https://docs.python.org/3/whatsnew/3.13.html#:~:text=gh%2D66543.)-,re%3A,-Deprecate%20passing%20theChange-Id: Ibda1394927062dd9e0353e2b9d643b510070deb6Reviewed-on:https://chromium-review.googlesource.com/c/crashpad/crashpad/+/6298792Reviewed-by: Leonard Grey <lgrey@chromium.org>Commit-Queue: Mark Mentovai <mark@chromium.org>
gm4sl pushed a commit to backtrace-labs/crashpad that referenced this pull requestApr 1, 2025
https://docs.python.org/3/library/re.html:> Deprecated since version 3.13: Passing count and flags as positional> arguments is deprecated. In future Python versions they will be> keyword-only parameters.python/cpython#56166,python/cpython#107778,https://docs.python.org/3/whatsnew/3.13.html#:~:text=gh%2D66543.)-,re%3A,-Deprecate%20passing%20theChange-Id: Ibda1394927062dd9e0353e2b9d643b510070deb6Reviewed-on:https://chromium-review.googlesource.com/c/crashpad/crashpad/+/6298792Reviewed-by: Leonard Grey <lgrey@chromium.org>Commit-Queue: Mark Mentovai <mark@chromium.org>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
Deprecate passing optional arguments maxsplit, count and flags in module-level functions re.split(), re.sub() and re.subn() as positional. They should only be passed by keyword.
📚 Documentation preview 📚:https://cpython-previews--107778.org.readthedocs.build/