]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 21 Feb 2026 05:42:08 +0000 (06:42 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Feb 2026 05:42:08 +0000 (05:42 +0000)
commitfece40f7bc26502f1ce4ddb8412056e69f0181dd
treef8d7c2f73e055621591c29674ceb9f46194fb56a
parent9ebab55aa2256b1d839e02dd9722ccd5fb556454
[3.14] gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696) (#145065)

gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696)

The documentation incorrectly stated that numeric group arguments
must be in the range [1..99]. This limit was removed in Python 3.5
(bpo-22437). Replace with "a positive integer" since the next
sentence already documents the IndexError for out-of-range values.
(cherry picked from commit 85021bc2477f3ab394172b6dda3110e59f4777dd)

Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
Doc/library/re.rst