Skip to content

Comments

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

Merged
JelleZijlstra merged 1 commit intopython:3.13from
miss-islington:backport-85021bc-3.13
Feb 21, 2026
Merged

[3.13] gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696)#145066
JelleZijlstra merged 1 commit intopython:3.13from
miss-islington:backport-85021bc-3.13

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Feb 21, 2026

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


📚 Documentation preview 📚: https://cpython-previews--145066.org.readthedocs.build/

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 85021bc2477f3ab394172b6dda3110e59f4777dd)

Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news labels Feb 21, 2026
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Feb 21, 2026
@JelleZijlstra JelleZijlstra enabled auto-merge (squash) February 21, 2026 05:40
@JelleZijlstra JelleZijlstra merged commit 11c61b5 into python:3.13 Feb 21, 2026
29 of 30 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Feb 21, 2026
@miss-islington miss-islington deleted the backport-85021bc-3.13 branch February 21, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants