Skip to content

gh-135646: Raise consistent NameError exceptions in ForwardRef.evaluate() - #135663

Merged
JelleZijlstra merged 1 commit into
python:mainfrom
Viicos:evaluate-fr-nameerror
Jun 18, 2025
Merged

JelleZijlstra merged 1 commit into
python:mainfrom
Viicos:evaluate-fr-nameerror

Conversation

@Viicos

@Viicos Viicos commented Jun 18, 2025 •

Copy link
Copy Markdown
Contributor

The error message template hasn't changed in 25 years, so the risk of them going out of sync is quite low.

@Viicos
Viicos force-pushed the evaluate-fr-nameerror branch from b4843e2 to d28e0a9 Compare June 18, 2025 09:48
@JelleZijlstra JelleZijlstra added the needs backport to 3.14 bugs and security fixes label Jun 18, 2025
@JelleZijlstra
JelleZijlstra enabled auto-merge (squash) June 18, 2025 13:00
@JelleZijlstra
JelleZijlstra merged commit 343719d into python:main Jun 18, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @Viicos for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 18, 2025
…ef.evaluate()` (pythonGH-135663)

(cherry picked from commit 343719d)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
@bedevere-app

bedevere-app Bot commented Jun 18, 2025

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 18, 2025
JelleZijlstra pushed a commit that referenced this pull request Jun 18, 2025
…Ref.evaluate()` (GH-135663) (#135673)

gh-135646: Raise consistent `NameError` exceptions in `ForwardRef.evaluate()` (GH-135663)
(cherry picked from commit 343719d)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
lkollar pushed a commit to lkollar/cpython that referenced this pull request Jun 19, 2025
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
@Viicos
Viicos deleted the evaluate-fr-nameerror branch October 20, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants