#13577: cdef _richcmp is overridden by def method
-------------------------+--------------------------------------------------
Reporter: SimonKing | Owner: GeorgSWeber
Type: defect | Status: new
Priority: minor | Milestone: sage-5.5
Component: build | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
-------------------------+--------------------------------------------------
sage/structure/parent_old.pxd defines:
{{{
cdef class Parent(parent.Parent):
...
# Comparison of parent objects
cdef _richcmp(left, right, int op)
}}}
But sage.structure.parent_base.ParentWithBase overrides it:
{{{
cdef class ParentWithBase(parent_old.Parent):
...
def _richcmp(left, right, int op):
check_old_coerce(left)
return (<parent_old.Parent>left)._richcmp(right, op) # the cdef
method
}}}
The result is a warning when compiling sage.structure.parent_base.
Does that need fixing? I am not sure. Also I am not sure about the bug
component. Perhaps "build", because the only "problem" seems to be a
warning while building sage?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13577>
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.