FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-56166: Deprecate passing confusing positional arguments in re functions by serhiy-storchaka · Pull Request #107778 · python/cpython · GitHub

/ cpython Public

gh-56166: Deprecate passing confusing positional arguments in re functions - #107778

Merged
hauntsaninja merged 2 commits into
python:mainfrom
serhiy-storchaka:re-deprecate-positional-args
Aug 16, 2023
Merged

gh-56166: Deprecate passing confusing positional arguments in re functions#107778
hauntsaninja merged 2 commits into
python:mainfrom
serhiy-storchaka:re-deprecate-positional-args

Conversation

serhiy-storchaka commented Aug 8, 2023
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

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 functions

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.

Copy link
Copy Markdown
Contributor

Thank you!

hauntsaninja merged commit 882cb79 into python:main Aug 16, 2023
serhiy-storchaka deleted the re-deprecate-positional-args branch August 16, 2023 20:45
miketheman added a commit to miketheman/pytest-postgresql that referenced this pull request Dec 26, 2024
In Python 3.13, usage of a positional argument for `maxsplit` has been
formally deprecated.
Refs: python/cpython#107778

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
aarongable pushed a commit to chromium/chromium that referenced this pull request Feb 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%20the

Change-Id: Id7909960a107163753ccceb5ebe66c639fe02833
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6297851
Commit-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 request Feb 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%20the

Change-Id: Ibda1394927062dd9e0353e2b9d643b510070deb6
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/6298792
Reviewed-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 request Apr 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%20the

Change-Id: Ibda1394927062dd9e0353e2b9d643b510070deb6
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/6298792
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL