#18305: Element comparison for Python classes
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.9
Component: coercion | Resolution:
Keywords: | Merged in:
Authors: Vincent Delecroix | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vdelecroix/18305 | 3f6ea84eb645f1e29426bedc7763c9f31997867b
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
`Py_EQ` should be `op_EQ` here:
{{{
INPUT:
- ``op`` -- a rich comparison operation (e.g. ``Py_EQ``)
}}}
`c` can be any integer, not only -1, 0 or 1:
{{{
- ``c`` -- the result of an ordinary comparison: -1, 0 or 1.
}}}
No trailing slash needed:
{{{
sage: from sage.structure.sage_object import (py_rich_to_bool, \
....: op_EQ, op_NE, op_LT, op_LE, op_GT, op_GE)
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18305#comment:32>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.