#14019: equality is broken for Posets
---------------------------------+------------------------------------------
Reporter: ncohen | Owner: sage-combinat
Type: defect | Status: new
Priority: major | Milestone: sage-5.7
Component: combinatorics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Nathann Cohen | Merged in:
Dependencies: | Stopgaps:
---------------------------------+------------------------------------------
Comment (by ncohen):
Yeahhhhhhhhhhhhh.....
{{{
def __eq__(self, other):
return self.hasse_diagram() == other.hasse_diagram()
}}}
Result :
{{{
...
File "/home/ncohen/.Sage/local/lib/python/site-
packages/sage/combinat/posets/posets.py", line 826, in __eq__
return ((self.hasse_diagram() == other.hasse_diagram()) and
File "/home/ncohen/.Sage/local/lib/python/site-
packages/sage/graphs/generic_graph.py", line 432, in __eq__
if self.vertices() != other.vertices():
File "/home/ncohen/.Sage/local/lib/python/site-
packages/sage/combinat/posets/elements.py", line 116, in __eq__
return have_same_parent(self, other) \
File "sage_object.pyx", line 700, in
sage.structure.sage_object.have_same_parent
(sage/structure/sage_object.c:8386)
File "/home/ncohen/.Sage/local/lib/python/site-
packages/sage/combinat/posets/posets.py", line 826, in __eq__
return ((self.hasse_diagram() == other.hasse_diagram()) and
...
RuntimeError: maximum recursion depth exceeded
}}}
Categories strike again.
Nathann
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14019#comment:4>
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].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.