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
Misleading warning message of _expect_expr() at KeyboardInterrupt #6661
Comments
Fixing a misleading warning message in _expect_expr, with doc test included |
This comment has been minimized.
This comment has been minimized.
Author: Simon King |
comment:2
Attachment: trac_6661_expect_expr.patch.gz Meanwhile there also is a doc test (thank you for pointing me to the "alarm" function, William!), so, I think the patch is ready for review! Now, we have a better warning message:
Note that it correctly says "Interrupting Singular" or "Interrupting Gap". |
comment:3
Before patch:
The error message should say that it's interrupting Singular or GAP, not R. Now after the patch:
The error message now correctly says that it's interrupting Singular or GAP. So positive review. |
Merged: Sage 4.1.1.rc1 |
Reviewer: Minh Van Nguyen |
When there is a
KeyboardInterrupt
while_expect_expr
talks with some interface, there is always the warning messagebefore the
KeyboardInterrupt
is re-raised -- regardless whether the interface is R or anything else!The patch that I am about to post would instead print
where
self
is the interface.Component: interfaces
Keywords: KeyboardInterrupt
Author: Simon King
Reviewer: Minh Van Nguyen
Merged: Sage 4.1.1.rc1
Issue created by migration from https://trac.sagemath.org/ticket/6661
The text was updated successfully, but these errors were encountered: