numarray: Bug printing an object array after unpickling it
5 Jul
2005
5 Jul
'05
6:47 a.m.
#! /usr/bin/env python # I have a PC with up-to-date Debian unstable Linux. I have installed # Python 2.4.1 and numarray 1.3.2 from source (not from a Debian # package). The following program fails for both pickle and cPickle: import pickle import numarray, numarray.objects obj = numarray.objects.array([0,0,0,0], (2,2)) print obj s = pickle.dumps(obj, pickle.HIGHEST_PROTOCOL) open('mess2', 'w').write(s) s = open('mess2', 'r').read() obj = pickle.loads(s) print obj # Fails here
6867
Age (days ago)
6867
Last active (days ago)
0 comments
1 participants
participants (1)
-
Edward C. Jones