Error with: pickle.dumps(numpy.float32)

Iljya Iljya.Kalai at gmail.com
Tue Aug 15 15:27:14 EDT 2006


Hello,

I need to pickle the type numpy.float32 but encounter an error when I
try to do so. I am able to pickle the array itself, it is specifically
the type that I cannot pickle.

I am using:
Numpy version: 0.9.4
Python version: 2.4.3
Windows XP

Here is the code that reproduces the error:
______________________________________
import numpy
import pickle

pickle.dumps(numpy.float32)

Output:
PicklingError: Can't pickle <type 'float32_arrtype'>: it's not found as
__builtin__.float32_arrtype
______________________________________

Any suggestions would be much appreciated.

Thanks,

Iljya Kalai




More information about the Python-list mailing list