-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
bpo-34013: Generalize the invalid legacy statement error message #27389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
One possibility we can do is eliminate the custom code and just go with this error always (no "did you mean 'print(...)'"). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice improvement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, @pablogsal, I could not cleanly backport this to |
GH-27391 is a backport of this pull request to the 3.10 branch. |
…ge (pythonGH-27389). (cherry picked from commit 6948964) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
https://bugs.python.org/issue34013