Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedAug 8, 2023
edited by github-actionsbot
Loading

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/

…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.
@hauntsaninja
Copy link
Contributor

Thank you!

@hauntsaninjahauntsaninja merged commit882cb79 intopython:mainAug 16, 2023
@serhiy-storchakaserhiy-storchaka deleted the re-deprecate-positional-args branchAugust 16, 2023 20:45
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>
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
Reviewers

@hauntsaninjahauntsaninjahauntsaninja approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@serhiy-storchaka@hauntsaninja@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp