gh-144694: Fix re.Match.group() doc claiming [1..99] range limit by mohsinm-dev · Pull Request #144696 · python/cpython

@mohsinm-dev

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.

serhiy-storchaka

caje731

JelleZijlstra

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Feb 21, 2026
pythonGH-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 85021bc)

Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Feb 21, 2026
pythonGH-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 85021bc)

Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>

JelleZijlstra pushed a commit that referenced this pull request

Feb 21, 2026
…it (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 85021bc)

Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>

JelleZijlstra pushed a commit that referenced this pull request

Feb 21, 2026
…it (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 85021bc)

Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>

brijkapadia pushed a commit to brijkapadia/cpython that referenced this pull request

Feb 28, 2026
python#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.