ahaldar wrote: > Hi: > > I have some large data structure objects in memory, and when I attempt > to pickle them, I get the following error: > > SystemError: frexp() out of range > > Are there some objects that are just too large to serialize, and if > so, is there an easy workaround without breaking up the object and > reconstructing it during deserialization? > > Here's the code I use to pickle the object: > > f = open(dir+file, "w+b") > pickle.dump(structure, f, protocol=2) # throws error > f.close() > > - abhra >
Could it be that your data contains floating point numbers, where at least one of them is Inf or NaN? I think these floats cannot be pickled reliably. --Irmen -- http://mail.python.org/mailman/listinfo/python-list