-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Add ABCs CommutativePolynomial, MPolynomial_libsingular, InfinitePolynomial; deprecate is_Polynomial, is_MPolynomial #35076
Conversation
…mial for ABCs Polynomial, MPolynomial
…e.rings.polynomial
… in isinstance tests
PR fixes merge conflict in positively reviewed ticket #32709, setting to positive review. |
Codecov ReportBase: 88.59% // Head: 88.58% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #35076 +/- ##
===========================================
- Coverage 88.59% 88.58% -0.02%
===========================================
Files 2140 2140
Lines 396998 397001 +3
===========================================
- Hits 351740 351677 -63
- Misses 45258 45324 +66
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
…ial__mpolynomial_for_isinstance_testing SageMath version 9.8, Release Date: 2023-02-11
d4a46aa
to
f7e9f41
Compare
Failures in |
…ePolynomial in isinstance tests, not InfinitePolynomial_sparse
…polynomial__mpolynomial_for_isinstance_testing SageMath version 10.0.beta0, Release Date: 2023-02-12 # Conflicts: # src/sage/combinat/schubert_polynomial.py
…ePolynomial) without _sparse
…polynomial__mpolynomial_for_isinstance_testing
…polynomial__mpolynomial_for_isinstance_testing
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.
Let it be so, but I am still a bit worried about the continued increase in maintenance burden with the lack of specifications.
A more positive take would be that the new class |
Thanks for the review! |
Indeed, this I am very happy about (a long time wish-list item from me). However, I am still not clear what makes the infinite polynomials deserving of an ABCDEFIT. |
"Fixes", "Closes", and "Resolves" all have the same magic effect. |
I see. Thanks. |
I have opened #35149 for keeping track of follow-ups in this direction. |
Thank you. |
…polynomial__mpolynomial_for_isinstance_testing
…ut (trac->github)
…ucture_element__add_abcs_polynomial__mpolynomial_for_isinstance_testing
… is_Polynomial, is_MPolynomial
Documentation preview for this PR is ready! 🎉 |
@@ -20,6 +20,9 @@ from itertools import chain, islice | |||
from sage.misc.misc_c import prod | |||
|
|||
def is_MPolynomial(x): | |||
from sage.misc.superseded import deprecation | |||
deprecation(32709, "the function is_MPolynomial is deprecated; use isinstance(x, sage.structure.element.MPolynomial) instead") |
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 deprecation message is wrong:
it should be sage.rings.polynomial.multi_polynomial.MPolynomial
, no?
📚 Description
Closes #32709
📝 Checklist
⌛ Dependencies