]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (#144696)
authorMohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
Sat, 21 Feb 2026 05:36:26 +0000 (10:36 +0500)
committerGitHub <noreply@github.com>
Sat, 21 Feb 2026 05:36:26 +0000 (21:36 -0800)
commit85021bc2477f3ab394172b6dda3110e59f4777dd
tree7739afe614d3079fb05b6194c6ec1b63b90436d1
parent273d5062ca17ac47354486f3fc6e672a04cf22e0
gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (#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.
Doc/library/re.rst