-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Finish changing Rational's round method default rounding to even #39486
Conversation
Documentation preview for this PR (built with commit 774b89d; changes) is ready! 🎉 |
In fact, I would say the deprecation acts as intended, cf DeprecationWarning : Therefore, since it has been about 18 months since the deprecation introduced in #35756, it could indeed be the right time to actually make the change (from default away to even). |
It seems to me that the failing doctests are not linked to the changes here (one I cannot reproduce, and the other one I can reproduce but already without the changes of this PR). The changes look good to me. |
Another set of eyes may be useful before a positive review. Maybe @mezzarobba who had also contributed to #35756 ? |
No objections! |
sagemathgh-39486: Finish changing Rational's round method default rounding to even Follow-up to sagemath#35756 . (As is, the warning cannot be suppressed) Related: sagemath#37306, sagemath#21935 There's a little (large??) problem: previously `K2.<sqrt2> = QuadraticField(2); K2(9/2).round()` returns `5` **without** a warning (because sagemath#35756 forget to print the deprecation). Should we add the deprecation first **then** change this next year? ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#39486 Reported by: user202729 Reviewer(s): Vincent Neiger
From CI: https://github.com/sagemath/sage/pull/39687/files More investigation needed. |
Follow-up to #35756 .
(As is, the warning cannot be suppressed)
Related: #37306, #21935
There's a little (large??) problem: previously
K2.<sqrt2> = QuadraticField(2); K2(9/2).round()
returns5
without a warning (because #35756 forget to print the deprecation). Should we add the deprecation first then change this next year?📝 Checklist
⌛ Dependencies