Hello, I´ve got this problem with pickle, it seems it doesn´t handle correctly infinite values (nor does Python return overflow/underflow error). What could I do about it? Example code:
>>> x = 1e310 #actually it would be a result of calculations >>> type(x) <type 'float'> >>> x 1.#INF >>> import pickle >>> pickle.loads(pickle.dumps(x)) [...] ValueError: invalid literal for float(): 1.#INF -- http://mail.python.org/mailman/listinfo/python-list