commit | e089c688717fbc7c208ad30ee885dcd93a4de678 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Tue Apr 10 03:41:41 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Tue Apr 10 03:41:41 2001 +0000 |
tree | 482d34aafc818b97fe753c9a369af32170b8fa6e | |
parent | aa815df1e18b9b717e39e258f416b107476b4db2 [diff] |
Test full range of native ints. This exposes two more binary pickle bugs on sizeof(long)==8 machines. pickle.py has no idea what it's doing with very large ints, and variously gets things right by accident, computes nonsense, or generates corrupt pickles. cPickle fails on cases 2**31 <= i < 2**32: since it *thinks* those are 4-byte ints (the "high 4 bytes" are all zeroes), it stores them in the (signed!) BININT format, so they get unpickled as negative values.