FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-151819: Clarify the conditional-pattern email example in re docs by serhiy-storchaka · Pull Request #153072 · python/cpython · GitHub

Repository navigation

gh-151819: Clarify the conditional-pattern email example in re docs - #153072

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-151819-conditional-docs
Jul 5, 2026
Merged

serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-151819-conditional-docs

Conversation

Copy link
Copy Markdown
Member

The (?(id/name)yes-pattern|no-pattern) example claimed the pattern does "not match" '<user@host.com', but re.search matches 'user@host.com' in it; only the whole string fails. Reword to say so.

See gh-151819.

…docs

The example pattern does not fail to match '<user@host.com' outright --
re.search finds 'user@host.com' in it; it only fails to match the
whole string.  Reword to say so.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jul 5, 2026
github-project-automation Bot moved this to Todo in Docs PRs Jul 5, 2026
serhiy-storchaka enabled auto-merge (squash) July 5, 2026 07:42
serhiy-storchaka added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Jul 5, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33444853 | 📁 Comparing 14bafb1 against main (600e864)

  🔍 Preview build  

1 file changed
± library/re.html

serhiy-storchaka merged commit fe9c721 into python:main Jul 5, 2026
42 checks passed
github-project-automation Bot moved this from Todo to Done in Docs PRs Jul 5, 2026

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

bedevere-app Bot commented Jul 5, 2026

Copy link
Copy Markdown

GH-153073 is a backport of this pull request to the 3.15 branch.

bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Jul 5, 2026

bedevere-app Bot commented Jul 5, 2026

Copy link
Copy Markdown

GH-153074 is a backport of this pull request to the 3.14 branch.

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 5, 2026

bedevere-app Bot commented Jul 5, 2026

Copy link
Copy Markdown

GH-153075 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Jul 5, 2026
serhiy-storchaka added a commit that referenced this pull request Jul 5, 2026
… docs (GH-153072) (GH-153075)

The example pattern does not fail to match '<user@host.com' outright --
re.search finds 'user@host.com' in it; it only fails to match the
whole string.  Reword to say so.
(cherry picked from commit fe9c721)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
serhiy-storchaka added a commit that referenced this pull request Jul 5, 2026
… docs (GH-153072) (GH-153074)

The example pattern does not fail to match '<user@host.com' outright --
re.search finds 'user@host.com' in it; it only fails to match the
whole string.  Reword to say so.
(cherry picked from commit fe9c721)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
serhiy-storchaka added a commit that referenced this pull request Jul 5, 2026
… docs (GH-153072) (GH-153073)

The example pattern does not fail to match '<user@host.com' outright --
re.search finds 'user@host.com' in it; it only fails to match the
whole string.  Reword to say so.
(cherry picked from commit fe9c721)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
serhiy-storchaka deleted the gh-151819-conditional-docs branch July 15, 2026 11:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL