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.

classification
Title: cPickle and pickle dump bug (inf float)
Type: Stage:
Components: Extension Modules Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: mwh Nosy List: bolzonella, mwh
Priority: normal Keywords:

Created on 2005-06-27 04:30 by bolzonella, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25649 - (view) Author: Andrea Bolzonella (bolzonella) Date: 2005-06-27 04:30
An "inf float" can't be dumped in binary form. 
 
Python 2.4.1 (#1, Jun 10 2005, 16:30:55) 
[GCC 3.3.3 (SuSE Linux)] on linux2 
Type "help", "copyright", "credits" or "license" for more 
information. 
>>> import pickle 
>>> import cPickle 
>>> pickle.dumps (10e5000) 
'Finf\n.' 
>>> pickle.dumps (10e5000, pickle.HIGHEST_PROTOCOL) 
Traceback (most recent call last): 
  File "<stdin>", line 1, in ? 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 1386, in 
dumps 
    Pickler(file, protocol, bin).dump(obj) 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 231, in 
dump 
    self.save(obj) 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 293, in 
save 
    f(self, obj) # Call unbound method with explicit self 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 489, in 
save_float 
    self.write(BINFLOAT + pack('>d', obj)) 
SystemError: frexp() result out of range 
>>> 
msg25650 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-06-27 10:22
Logged In: YES 
user_id=6656

Why has this suddenly become a common bug report?

Anyway, this should work in CVS HEAD (please test!).  The changes are 
unlikely to be backported to the 2.4 branch.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42130
2005-06-27 04:30:21bolzonellacreate