Make the REPL handle line continuation better#711
Conversation
| // TODO: Raise a real KeyboardInterrupt exception | ||
| println!("^C"); | ||
| break; | ||
| continuing = false; |
There was a problem hiding this comment.
I think we should quit when hitting CTR+C, right? Now we continue.
There was a problem hiding this comment.
Oh, right. I should've discussed this before making the change, but usually in shells (iPython, bash/zsh/sh/sshshshshshs), ^C just cancels what you're currently typing, it doesn't completely end the shell like ^D does. I found it to be sort of annoying when testing something in the REPL, so I changed it here; if you disagree with it I can change it back though.
There was a problem hiding this comment.
Okay, in that case, nice job!
| loop { | ||
| match repl.readline(prompt) { | ||
| let prompt = if continuing { | ||
| get_prompt(vm, "ps2") |
There was a problem hiding this comment.
Btw, this also fixes changing sys.ps1 on the fly!
Make the REPL handle line continuation better #711
|
How to run IPython with ”RustPython" ? https://stackoverflow.com/questions/16536683/how-to-run-ipython-with-pypy |
|
I think it would be possible, but I don't think RustPython is at a point yet where it would be able to run a project as complex as IPython. |
Edit: this would resolve #626.