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
py3: phase out lexico cmp in real_mpfi #22907
Comments
Branch: u/chapoton/22907 |
Commit: |
Replying to @fchapoton:
Do we need |
comment:3
well, lexico_cmp is useful to check that pickling works. And if somebody did use cmp, it could serve as a replacement |
comment:4
Replying to @fchapoton:
Ok, fine for me. |
comment:5
Replying to @dkrenn:
As |
Reviewer: Daniel Krenn |
comment:7
Apart from the question above and modulo a successful run of a patchbot, this patch looks good. |
comment:8
Hmm, trying to introduce a deprecation seems to uncover some problems with QQbar. Investigating, maybe in relation with #18303 |
comment:9
en experimental branch with deprecation is available as "u/chapoton/experiment-22907" |
comment:11
Replying to @fchapoton:
This looks fine for me. |
Changed branch from u/chapoton/22907 to u/chapoton/experiment-22907 |
Dependencies: #18303 |
comment:13
looks good, bot is morally green |
comment:14
back to needs review, please double check |
Changed branch from u/chapoton/experiment-22907 to |
Currently cmp(a,b) for two real-interval field elements performs a lexicographic comparison. And rich comparison has a different semantic.
We rename
_cmp_
tolexico_cmp
to put it outside the comparison framework. This means thatcmp
will not work anymore. The documentation is modified accordingly, to warn users not to usecmp
at all on these objects.Helpful for the major ticket #22297
Depends on #18303
CC: @tscrim @jdemeyer @a-andre @dkrenn @cheuberg @behackl
Component: python3
Author: Frédéric Chapoton
Branch/Commit:
ea97bfc
Reviewer: Daniel Krenn
Issue created by migration from https://trac.sagemath.org/ticket/22907
The text was updated successfully, but these errors were encountered: