← 输入框|github.com|刷新
Skip to content

Lexer error on relative import starting with 3 dots  #1052

Closed

Description

@apatrushev

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

Activity

  1. added a commit that references this issue on Jul 15, 2019
    ff762d7
  2. added a commit that references this issue on Jul 16, 2019
    42b1b75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions