Memory error while saving dictionary of size 65000X50 using pickle
"Martin v. Löwis"
martin at v.loewis.de
Mon Jul 7 16:36:19 EDT 2008
Nagu wrote:
> I am trying to save a dictionary of size 65000X50 to a local file and
> I get the memory error problem.
What do you mean by this size specification? When I interpreter X as
multiplication, I can't see a problem: the code
import pickle
d = {}
for i in xrange(65000*50):
d[i]=i
print "Starting dump"
s = pickle.dumps(d)
works just fine for me. Can you please modify it so that it does cause
a problem?
Regards,
Martin
More information about the Python-list
mailing list