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
Don't use bare except: statements #27427
Comments
This comment has been minimized.
This comment has been minimized.
New commits:
|
Commit: |
comment:4
some failing doctests in inverse doctests, see patchbot |
comment:5
Seems like the failures are from the change in |
comment:6
This is because |
comment:7
Replying to @fchapoton:
That's wrong: inverting a non-invertible element shouldn't raise |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:10
I think the code in |
comment:11
doctests on inverse are still not fixed |
comment:12
Sorry for the mess, I'm doing too many things at the same time. |
comment:13
Replying to @fchapoton:
Are you sure? I ran all tests in (edit: never mind, I ran all tests without |
comment:14
pathcbots say that long test fails on 0104d64536e08abf61b4e |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:17
I think that this fixes all comments. I decided to make some changes to the handling of matrix groups, printing "positive definite" when it is positive definite (previously, it only printed "non positive definite"). |
comment:18
Note that the other places where I removed a
In general, I don't like this code structure, I prefer the keep the original exception (which often contains more useful information). |
Reviewer: Frédéric Chapoton |
comment:19
ok, let it be.. |
Changed branch from u/jdemeyer/don_t_use_base_except__statements to |
comment:21
Thanks Jeroen, for correcting my mistakes! |
Changed commit from |
It's well known that
except:
should be avoided because it catches unintended things likeKeyboardInterrupt
.Component: misc
Author: Jeroen Demeyer
Branch:
367b0a1
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/27427
The text was updated successfully, but these errors were encountered: