Skip to content

Integer problem starting with 0 #1422

@HyeockJinKim

Description

@HyeockJinKim

Feature

0123

Integer starting with 0 should raise SyntaxError.
I think it should be fixed in lexer.rs

Expected Result

>>> 0123
  File "<stdin>", line 1
    0123
       ^
SyntaxError: invalid token

Actual Result

>>>>> 0123
123

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-compatA discrepancy between RustPython and CPython

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions