Skip to content

In Doc/library/re.rst rename variables from match to m - #157303

Open
JohnADawson wants to merge 1 commit into
python:mainfrom
JohnADawson:doc-re-match
Open

In Doc/library/re.rst rename variables from match to m#157303
JohnADawson wants to merge 1 commit into
python:mainfrom
JohnADawson:doc-re-match

Conversation

@JohnADawson

Copy link
Copy Markdown

match has been a soft keyword since version 3.10, so examples ought to not use it as the name of a variable.

https://docs.python.org/3/reference/lexical_analysis.html#soft-keywords

The new name, m, is used for match objects in other examples in re.rst.

`match` has been a soft keyword since version 3.10, so examples ought to
not use it as the name of a variable.

https://docs.python.org/3/reference/lexical_analysis.html#soft-keywords

The new name, `m`, is used for match objects in other examples in
re.rst.
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Sep 11, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Sep 11, 2026
@python-cla-bot

python-cla-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34508954 | 📁 Comparing a4d2125 against main (07f33ce)

  🔍 Preview build  

1 file changed
± library/re.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant