2.0b2: SystemError: frexp() result out of range

Anthony J Doggett UG ajd111 at york.ac.uk
Wed Jul 25 10:46:27 CEST 2001


> Yeah, I believe so:
> 
>>>> float('inf')
> inf
<snip>
>>>> cPickle.dumps(float('inf'))
> 'Finf\n.'

I get the same when working in ascii mode - it is /binary/ that's the
problem.  It seems a horrible hack to have to change infinities before
binary-pickling them:(

>>> cPickle.dumps(float('inf'))
'Finf\012.'
>>> cPickle.dumps(float('inf'), 1)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
SystemError: frexp() result out of range

Anthony.
-- 
Anthony Doggett
*** Pick up a book, and enter a different world.
    But remember,
    it is unhealthy to spend too much time in any one world, 
    and worlds of the word come in concentrated form. ***



More information about the Python-list mailing list