Skip to content

Indentation Error does not occur when no value is entered after for #1385

Closed
@HyeockJinKim

Description

@HyeockJinKim

Feature

Expected Result

>>> for i in range(10):
... 
  File "<stdin>", line 2
    
    ^
IndentationError: expected an indented block

Actual Result

>>>>> for i in range(10):
..... 
..... 
..... 
..... 
..... 
..... 
..... 

In the python3 shell, if no value is entered when Indentation is required, (such as for: or if: or def, etc...), an IndentationError should be raised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions