-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spralja/prompt update #60
base: main
Are you sure you want to change the base?
Conversation
Now prints `\nKeyboard Interrupted`
Just prints newline and exits (modeled after the behaviour of the Python interactive console)
exit() | ||
|
||
except EOFError: | ||
print() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we swallowing errors? Would be useful to know why the program exited for no reason
EOFError is when you click CTRL-D.
…On Wed, 30 Mar 2022 at 19:37, Kyle Johnson ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/pychart/runner.py
<#60 (comment)>:
> @@ -42,7 +42,11 @@ def run_prompt():
print(result)
except KeyboardInterrupt:
- print("Keyboard Interrupt")
+ print("\nKeyboard Interrupted")
+ exit()
+
+ except EOFError:
+ print()
Why are we swallowing errors? Would be useful to know why the program
exited for no reason
—
Reply to this email directly, view it on GitHub
<#60 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQOJNY4RJCBHY7R537ON2LVCSGOJANCNFSM5R6SCMYA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Then it should say that no? |
I don't as I said in the commit motivation, I modeled it after the behaviour of the python interactive console. |
Added minor qol updates to the prompt