diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-08-16 20:35:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 20:35:35 (GMT) |
commit | 882cb79afa2cb11b180ef699fd5cf038e72f6c85 (patch) | |
tree | 5ceb212dacf1ba5529aabb9ad5ac2791e8446db2 /Misc/NEWS.d | |
parent | fb8fe377c4ddaea24ea6aa0a8f5d036986373d39 (diff) | |
download | cpython-882cb79afa2cb11b180ef699fd5cf038e72f6c85.zip cpython-882cb79afa2cb11b180ef699fd5cf038e72f6c85.tar.gz cpython-882cb79afa2cb11b180ef699fd5cf038e72f6c85.tar.bz2 |
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.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-08-08-16-09-59.gh-issue-56166.WUMhYG.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-08-08-16-09-59.gh-issue-56166.WUMhYG.rst b/Misc/NEWS.d/next/Library/2023-08-08-16-09-59.gh-issue-56166.WUMhYG.rst new file mode 100644 index 0000000..34d776a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-08-08-16-09-59.gh-issue-56166.WUMhYG.rst @@ -0,0 +1,3 @@ +Deprecate passing optional arguments *maxsplit*, *count* and *flags* in +module-level functions :func:`re.split`, :func:`re.sub` and :func:`re.subn` as positional. +They should only be passed by keyword. |