It's cPickle with a capital P. On Wed, Feb 20, 2013 at 2:30 AM, akhil <[email protected]> wrote: > Hello, > > > I want to use cpickle to store a matrix object in a text file. Sample code > is as follows: > > A = matrix(GF(2),2,3) #creating a 2 * 3 matrix having all entries > zero > > import cpickle as pickle > > pickle.dump(A,open("testpickle.txt",'w')) > > sage: Traceback (most recent call last): > File "s_rough.py", line 6, in <module> > import cpickle as pickle > ImportError: No module named cpickle > > The same code when tried with the pickle module, works as desired. > Is this because cpickle is not supported in SAGE? Or is there a mistake in > the way it is being called? > > Please help. > > Thanks and regards, > > AKHIL. > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" 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-support?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >
-- You received this message because you are subscribed to the Google Groups "sage-support" 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-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
