You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve SyntaxError message for import a as b.c #123539
Activity
lysnikolaou commentedon Sep 2, 2024
I'd love to review a PR for this!
sobolevn commentedon Sep 2, 2024
It is not that easy as previous two :)
I would take some extra time to get this right!
lysnikolaou commentedon Sep 3, 2024
Oh right. You probably have to do something more complex than what was in the other two cases. Maybe something like this would work?
I haven't tested it extensively, so it might break something.
sobolevn commentedon Sep 3, 2024
Yes, this is the part I am working with. There are also cases of
from a import (b as b1, c as c1), etc.lysnikolaou commentedon Sep 3, 2024
Right! You could do kind of the same approach in
import_from_as_nameforfromimports I think.pythongh-123539: Improve SyntaxError msg for `import as` with not a name
pythongh-123539: Improve SyntaxError msg for `import as` with not a name
gh-123539: Improve SyntaxError msg for `import as` with not a name (#…
pythongh-123539: Add new error message changes to "Whats New"
pythongh-123539: Add new error message changes to "Whats New"
pythongh-123539: Add new error message changes to "Whats New"
gh-123539: Add new error message changes to "Whats New" (#133344)
pythongh-123539: Improve SyntaxError msg for `import as` with not a n…
pythongh-123539: Add new error message changes to "Whats New" (python…