Re: [sage-support] using cpickle to store matrix object

2013-02-20 Thread akhil
Thanks a lot for your prompt help. 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 sage-support+unsubscr...@googlegroups.com. To post to this g

Re: [sage-support] using cpickle to store matrix object

2013-02-20 Thread Robert Bradshaw
It's cPickle with a capital P. On Wed, Feb 20, 2013 at 2:30 AM, akhil 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 pickl

[sage-support] using cpickle to store matrix object

2013-02-20 Thread akhil
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