Closed fchapoton closed 7 years ago
Branch: u/chapoton/22907
Replying to @fchapoton:
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.
Do we need lexico_cmp
at all or could we simply delete it?
well, lexico_cmp is useful to check that pickling works. And if somebody did use cmp, it could serve as a replacement
Replying to @fchapoton:
well, lexico_cmp is useful to check that pickling works. And if somebody did use cmp, it could serve as a replacement
Ok, fine for me.
Replying to @dkrenn:
Replying to @fchapoton:
well, lexico_cmp is useful to check that pickling works. And if somebody did use cmp, it could serve as a replacement
As cmp
is removed, do we need a deprecation warning for this?
Reviewer: Daniel Krenn
Apart from the question above and modulo a successful run of a patchbot, this patch looks good.
Hmm, trying to introduce a deprecation seems to uncover some problems with QQbar. Investigating, maybe in relation with #18303
en experimental branch with deprecation is available as "u/chapoton/experiment-22907"
Replying to @fchapoton:
en experimental branch with deprecation is available as "u/chapoton/experiment-22907"
This looks fine for me.
Changed branch from u/chapoton/22907 to u/chapoton/experiment-22907
Dependencies: #18303
let us wait for #18303 and then check than nothing else is broken by deprecation
New commits:
ea97bfc | py3 deprecation of call to cmp on RIF elements |
looks good, bot is morally green
back to needs review, please double check
Changed branch from u/chapoton/experiment-22907 to ea97bfc
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