• Cullen Rhodes's avatar
    Improve REPL support · 24a5b0c3
    Cullen Rhodes authored
    This fixes a bug with expressions inside loops in interactive mode
    that resulted in expressions not being printed:
    
        >> for i in range(3):
        ...    i
        ...
        >>
    
    Python prints the value every iteration:
    
        >> for i in range(3):
        ...    i
        ...
        0
        1
        2
        >>>
    
    The same also applies to while loops.
    24a5b0c3
ast.cpp 51.2 KB