Comment #1 on issue 224 by
mbogos...@gmail.com: cannot pickle mpi instances
http://code.google.com/p/mpmath/issues/detail?id=224
This is also true with matrices (with and without intervals):
>>> import cPickle as pickle
>>> import mpmath
>>> m1 = mpmath.iv.matrix([ [ 1, 2 ], [ 3, 4 ] ])
>>> pickle.dumps(m1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cPickle.PicklingError: Can't pickle
<class 'mpmath.matrices.matrices.matrix'>: attribute lookup
mpmath.matrices.matrices.matrix failed
>>> m2 = mpmath.fp.matrix([ [ 1, 2 ], [ 3, 4 ] ])
>>> pickle.dumps(m2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cPickle.PicklingError: Can't pickle
<class 'mpmath.matrices.matrices.matrix'>: attribute lookup
mpmath.matrices.matrices.matrix failed
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings