| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| // 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.
Sorry, something went wrong.
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.
Sorry, something went wrong.
There was a problem hiding this comment.
Okay, in that case, nice job!
Sorry, something went wrong.
| 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!
Sorry, something went wrong.
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 |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Edit: this would resolve #626.