[PYTHON MATRIX-SIG] Pickling arrays

Jim Hugunin hugunin@mit.edu
Wed, 2 Oct 1996 16:58:10 -0400


> > Recently seen on my computer screen:
> > pickle.PicklingError: can't pickle 'array' objects
> > 
> > Didn't this work at some point? 
> 
> Not without a modified pickle module.
> 
> > Should it work? Should I do something
> > else?

Numeric.py (or Core.py if using packages) subclasses the pickle object, so
if you use Numeric.dump(object, fp) it will work for all types handled by
pickle as well as arrays.

See the source code to Numeric.py for details ;-)
-Jim

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================