Skip to content
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

gh-118082: Improve import without names syntax error message #118083

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Apr 19, 2024

@sobolevn
Copy link
Member Author

I've also added raw import support:

>>> import
  File "<stdin>", line 1
    import
          ^
SyntaxError: Expected one or more names after 'import'

@sobolevn sobolevn changed the title gh-118082: Improve from x import syntax error message gh-118082: Improve import without names syntax error message Apr 20, 2024
Copy link
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Great work!

@pablogsal pablogsal merged commit de1f686 into python:main Apr 23, 2024
38 checks passed
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