summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-11-01 13:01:20 (GMT)
committerGitHub <noreply@github.com>2022-11-01 13:01:20 (GMT)
commit395d4285bfba2177719efd826fbb89bf3efcf641 (patch)
tree58cdc74ef24a74170efc3c021e29576ed6d13579 /Misc
parent0e15c31c7e9907fdbe38a3f419b669fed5bb3b33 (diff)
downloadcpython-395d4285bfba2177719efd826fbb89bf3efcf641.zip
cpython-395d4285bfba2177719efd826fbb89bf3efcf641.tar.gz
cpython-395d4285bfba2177719efd826fbb89bf3efcf641.tar.bz2
gh-98931: Improve error message when the user types 'import x from y' instead of 'from y import x' (#98932)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2022-10-31-22-55-34.gh-issue-98931.AoWZ-4.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-10-31-22-55-34.gh-issue-98931.AoWZ-4.rst b/Misc/NEWS.d/next/Core and Builtins/2022-10-31-22-55-34.gh-issue-98931.AoWZ-4.rst
new file mode 100644
index 0000000..7f73580
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2022-10-31-22-55-34.gh-issue-98931.AoWZ-4.rst
@@ -0,0 +1,2 @@
+Improve the :exc:`SyntaxError` error message when the user types ``import x
+from y`` instead of ``from y import x``. Patch by Pablo Galindo