]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:39 +0000 (06:42 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Feb 2026 05:42:39 +0000 (05:42 +0000)
commit11c61b52d30e413a58db296eec97949c2c7d8fe4
treef61c089ad7366acf6677ef590bd8ddba66bad421
parentc2a1fcbc05f3e5b30700b76f9367ca7171f9de78
[3.13] gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696) (#145066)

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