Skip to content

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

Merged
JelleZijlstra merged 1 commit into
python:3.14from
miss-islington:backport-85021bc-3.14
Feb 21, 2026
Merged

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

Conversation

@miss-islington

@miss-islingtonmiss-islington commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

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--145065.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 85021bc)
Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
@bedevere-appbedevere-appBot added awaiting review docs Documentation in the Doc dir skip news labels Feb 21, 2026
@JelleZijlstra
JelleZijlstra enabled auto-merge (squash) February 21, 2026 05:40
@JelleZijlstra
JelleZijlstra merged commit fece40f into python:3.14Feb 21, 2026
36 checks passed
@github-project-automationgithub-project-automationBot moved this from Todo to Done in Docs PRsFeb 21, 2026
@miss-islington
miss-islington deleted the backport-85021bc-3.14 branch February 21, 2026 05:42
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@JelleZijlstra@mohsinm-dev