Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"cmp" method failing on objects in the pickle jar #5503

Closed
nbruin opened this issue Mar 12, 2009 · 1 comment
Closed

"cmp" method failing on objects in the pickle jar #5503

nbruin opened this issue Mar 12, 2009 · 1 comment

Comments

@nbruin
Copy link
Contributor

nbruin commented Mar 12, 2009

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]

CC: @sagetrac-jakobkroeker

Component: misc

Keywords: universal comparison, transitivity

Issue created by migration from https://trac.sagemath.org/ticket/5503

@nbruin nbruin added this to the sage-5.11 milestone Mar 12, 2009
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@jdemeyer
Copy link

jdemeyer commented Mar 8, 2017

comment:6

Duplicate of #16311.

@jdemeyer jdemeyer removed this from the sage-6.4 milestone Mar 8, 2017
@jdemeyer jdemeyer closed this as completed Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants