This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author exarkun
Recipients
Date 2004-01-21.00:20:07
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
>>> import pickle
>>> pickle.dumps(1e100000, 2)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/pickle.py", line 1386, in dumps
    Pickler(file, protocol, bin).dump(obj)
  File "/usr/lib/python2.3/pickle.py", line 231, in dump
    self.save(obj)
  File "/usr/lib/python2.3/pickle.py", line 293, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.3/pickle.py", line 489, in
save_float
    self.write(BINFLOAT + pack('>d', obj))
SystemError: frexp() result out of range


Prior to BINFLOAT, float infinity could successfully be
pickled.  The right thing to do here seems to be to
catch the exception and fall back to a FLOAT (string
representation) token.
History
Date User Action Args
2007-08-23 14:19:31adminlinkissue880990 messages
2007-08-23 14:19:31admincreate