]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-56166: Deprecate passing confusing positional arguments in re functions (#107778)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Aug 2023 20:35:35 +0000 (23:35 +0300)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 20:35:35 +0000 (13:35 -0700)
commit882cb79afa2cb11b180ef699fd5cf038e72f6c85
tree5ceb212dacf1ba5529aabb9ad5ac2791e8446db2
parentfb8fe377c4ddaea24ea6aa0a8f5d036986373d39
gh-56166: Deprecate passing confusing positional arguments in re functions (#107778)

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.
Doc/library/re.rst
Doc/whatsnew/3.13.rst
Lib/re/__init__.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2023-08-08-16-09-59.gh-issue-56166.WUMhYG.rst [new file with mode: 0644]