[ZODB-Dev] Problem Storing Infinity

David Binger dbinger at mems-exchange.org
Tue Sep 12 14:47:39 EDT 2006


On Sep 12, 2006, at 2:11 PM, Tim Peters wrote:

> [David Binger]
>> That's interesting.
>> It appears that pickle protocol 2 chokes on inf.
>
> As above.  BTW, why protocol 2 specifically?  Protocols 1 and 2 treat
> floats the same way.

I was thinking that the default protocol is 1, but I see
now that the default is 0.
2.4.2 on OS X can pickle infinity using
protocol 0, but attempts to pickle infinity using protocols
1 or 2 raise a SystemError.

Pickling infinity works fine, just as you say, in 2.5,
using any of the protocols.

Thanks for the explanation.



More information about the ZODB-Dev mailing list