possible bug in: _cmp_ function
Hello, on a 2019-release of sage, the following behaviour was observed: After defining:
R = Zp(5)
a = R(5, 6)
b = R(10)
an inconsistent output was given for a<b
and b>a
:
a<b
False
b>a
True
Is this a bug, or should the output not be consistent here for some reason?
P.S: The comparison function is implemented in the file: padic_generic_element.pyx
Thank you.
(Aside: When posting to this site you can format blocks of code either by indenting them, or by surrounding them with backticks. I have fixed the formatting of your post.)
Great, I will use this from now on. thanks.