Peter Otten
3/12/2008 6:17:00 PM
rehn@iwm.mw.tu-dresden.de wrote:
> Unpickling an infinite float caused a ValueError in the pickle module.
> I need to pickle and load infinite floats in my project. Do you have
> any suggestions how to solve the issue?
You could try another protocol. Does
>>> inf = 1e1000
>>> pickle.loads(pickle.dumps(inf, pickle.HIGHEST_PROTOCOL))
inf
work?
Peter