#12683: Inappropriate comparison of method
--------------------------------+-------------------------------------------
Reporter: culler | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: basic arithmetic | Keywords: rich comparison
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
--------------------------------+-------------------------------------------
{{{
sage: z = 3+4j
sage: z.real < 0
True
}}}
It is very easy to encounter this when importing working python scripts
into Sage. But it can be a bear to fix since there is no indication of
any problem, other than wrong answers.
There is no meaningful sense in which the method z.real should be
considered less than the number 0. So this comparison should return
NotImplemented. In fact, I would suggest that every comparison between a
method and any other object should return NotImplemented.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12683>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.