-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Replace "... is SR" by isinstance(..., sage.rings.abc.SymbolicRing) to handle symbolic subrings #32724
Comments
Commit: |
Author: Matthias Koeppe, ... |
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. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed dependencies from #32665 to none |
Changed author from Matthias Koeppe, ... to Matthias Koeppe |
This comment has been minimized.
This comment has been minimized.
comment:13
Now that we have a passing patchbot, this LGTM. I think "the symbolic ring (or a symbolic subring)" is awkward to repeat so many times and would be better phrased "a symbolic ring," but it's not important. |
Reviewer: Michael Orlitzky |
comment:14
Thank you! I used this phrasing because I didn't want to think about the status of callable symbolic rings in this ticket. |
There are a number of tests
... is SR
in the Sage library, as found bygit grep 'is SR' src/sage/
These tests ignore symbolic subrings, as constructed by
SR.subring(...)
.All or most of these uses should be changed to
isinstance(..., sage.rings.abc.SymbolicRing)
orisinstance(..., sage.symbolic.ring.SymbolicRing)
(if the module already imports other things fromsage.symbolic
)In addition to handling the case of subrings, this will help with modularization (#32601).
We leave a few uses of
is SR
to follow-up tickets #31988, #31999.CC: @dkrenn @egourgoulhon @orlitzky
Component: symbolics
Author: Matthias Koeppe
Branch/Commit:
ff83c4c
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/32724
The text was updated successfully, but these errors were encountered: