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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to