#5503: "cmp" method failing on objects in the pickle jar
--------------------+-------------------------------------------------------
Reporter: nbruin | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-3.4.1
Component: misc | Keywords: universal comparison, transitivity, coercion
--------------------+-------------------------------------------------------
The following piece of code loads the pickle jar and tries to compare each
pair of members. In my 3.4, it currently segfaults.
If sage is to have universal comparison, these comparisons should all
occur without error. The next step would be to ensure that results are
consistent with transitivity.
{{{
L=[]
M=[]
#change this location to point to your own pickle jar
path="/usr/local/sage/default/tmp/pickle_jar-3.4"
for n in sorted(os.listdir(path)):
if n.endswith(".sobj") and not(n in M):
print n
L.append(load(path+"/"+n))
for i in [1..len(L)-1]:
for j in range(i):
try:
_=cmp(L[i],L[j])
except:
print [i,j]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5503>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---