-
-
Notifications
You must be signed in to change notification settings - Fork 645
Consistent variable names for rings #40518
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
Open
orlitzky
wants to merge
11
commits into
sagemath:develop
Choose a base branch
from
orlitzky:consistent-variable-names
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8a69301
src/sage/structure/category_object.pyx: make variable_names() consistent
orlitzky b889d64
src/sage/rings:: ZZ, QQ, and AA have no variables
orlitzky a1baa67
src/sage/groups/finitely_presented.py: variable_names() fallout
orlitzky 4589d53
src/sage/modules/free_module_element.pyx: try/except -> if not
orlitzky 58aee99
src/sage/rings/quotient_ring.py: try/except -> if (not)
orlitzky 61feea6
src/sage/algebras/lie_algebras/lie_algebra.py: try/except -> if not
orlitzky 37dbfc8
src/sage/rings/qqbar.py: drop AA.__new__() method
orlitzky faded1d
src/sage/rings/quotient_ring_element.py: try/except -> if/else
orlitzky 4ebf7a0
src/sage/rings/asymptotic/misc.py: try/except -> if
orlitzky a420c43
src/sage/algebras/lie_algebras/quotient.py: try/except -> if
orlitzky 363b6c7
src/sage/.../lie_conformal_algebra_element.py: drop one try/except
orlitzky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't think you can remove this test.
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.
(The commit message mentions this, so apologies if you have read it already.)
The reason I've removed this test is because it is loading a copy of
AA
from before 2014, andAA
is a singleton, so loading the old copy putsx
back into the list of variables. The test forAA
having no variables then of course fails. Likewise,if any other tests are added for bugfixes toAA
in the future, they may mysteriously fail after the modernAA
is overwritten.I think it is pretty unlikely that someone will want to unpickle a copy of
AA
from before 2014, especially considering that (as evidenced by the test failures) it can bring back old bugs and incompatibilities. For a reference point, we switched to python-3.x in 2020.FWIW I could probably hack the
_names
after this test to keep it working for now, but I don't feel great about loading a mysterious binary string into scope and then using it for the rest of the test suite without knowing what the differences are compare to the modernAA
.