Skip to content

Lexer error on relative import starting with 3 dots #1052

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

Closed
apatrushev opened this issue Jun 21, 2019 · 0 comments
Closed

Lexer error on relative import starting with 3 dots #1052

apatrushev opened this issue Jun 21, 2019 · 0 comments
Labels
C-bug Something isn't working

Comments

@apatrushev
Copy link

current state

cargo run -- -c 'from ...a import e'
Traceback (most recent call last):
SyntaxError: Got unexpected token: Ellipsis at Location { row: 1, column: 6 } at line 0

should be

python -c 'from ...a import e'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ValueError: Attempted relative import in non-package
@palaviv palaviv added the C-bug Something isn't working label Jul 5, 2019
palaviv added a commit that referenced this issue Jul 16, 2019
Address relative import with 3 dots. Closes #1052.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants