8000 gh-98931: Improve error message when the user types 'import x from y' instead of 'from y import x' by pablogsal · Pull Request #98932 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-98931: Improve error message when the user types 'import x from y' instead of 'from y import x' #98932

8000 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

Merged
merged 4 commits into from
Nov 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! fixup! gh-98931: Improve error message when the user types 'im…
…port x from y' instead of 'from y import x'
  • Loading branch information
pablogsal committed Oct 31, 2022
commit fb08d31053bf565ad5d14973f86edff3c96de0ab
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Improved Error Messages
File "<stdin>", line 1
import a.y.z from b.y.z
^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Did you meant to use 'from ... import ...' instead?
SyntaxError: Did you mean to use 'from ... import ...' instead?

New Features
============
Expand Down
0