Skip to content

[3.14] gh-69365: Show search pattern errors in the IDLE search dialogs (GH-157598) - #157668

Merged
terryjreedy merged 1 commit into
python:3.14from
miss-islington:backport-9ab004d-3.14
Sep 18, 2026
Merged

terryjreedy merged 1 commit into
python:3.14from
miss-islington:backport-9ab004d-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Show the error in red below the entry and move the cursor to the
offending character in the pattern, instead of a message box. Find
Again without a dialog still uses the message box.

Check the pattern as typed, so that the position is right. This also
fixes the "Whole word" option with a regular expression: the pattern
is now grouped, so that "a|b" is anchored on both sides, and a pattern
ending with a backslash is an error instead of matching "\b".
(cherry picked from commit 9ab004d)

Co-authored-by: Serhiy Storchaka [email protected]
Co-authored-by: Claude Opus 5 (1M context) [email protected]

…pythonGH-157598)

Show the error in red below the entry and move the cursor to the
offending character in the pattern, instead of a message box. Find
Again without a dialog still uses the message box.

Check the pattern as typed, so that the position is right. This also
fixes the "Whole word" option with a regular expression: the pattern
is now grouped, so that "a|b" is anchored on both sides, and a pattern
ending with a backslash is an error instead of matching "\b".
(cherry picked from commit 9ab004d)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@terryjreedy
terryjreedy merged commit ba4efa6 into python:3.14 Sep 18, 2026
51 checks passed
@miss-islington
miss-islington deleted the backport-9ab004d-3.14 branch September 18, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants