#15904: Defining __eq__ without defining __ne__ or __cmp__: sage/combinat
-------------------------------------------------+-------------------------
Reporter: darij | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.2
Component: combinatorics | Resolution:
Keywords: sage-combinat, equality, | Merged in:
inheritance | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Comment (by darij):
Hmm, there actually *is* a noticeable amount of CombinatorialObjects which
redefine neither `__eq__` nor `__ne__` (tableaux, permutations, Dyck
words, partition tuples, ...), so we might want to check for speed
regressions. But they'll probably be insubstantial (for most combinatorial
operations, there should be no need to check for inequality).
Where can I learn how to use clonable lists?
About TestSuite: what am I doing wrong?
{{{
sage: c = Core([1,1],3)
sage: c
[1, 1]
sage: parent(c)
3-Cores of length 2
sage: parent(c).TestSuite()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
<ipython-input-4-7ca0b34ac3ec> in <module>()
----> 1 parent(c).TestSuite()
/scratch/sage-6.1.1/local/lib/python2.7/site-
packages/sage/structure/parent.so in
sage.structure.parent.Parent.__getattr__ (sage/structure/parent.c:6997)()
/scratch/sage-6.1.1/local/lib/python2.7/site-
packages/sage/structure/misc.so in
sage.structure.misc.getattr_from_other_class
(sage/structure/misc.c:1606)()
AttributeError: 'Cores_length_with_category' object has no attribute
'TestSuite'
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/15904#comment:5>
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.