diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-01-27 23:54:04 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-01-27 23:54:04 (GMT) |
commit | bdbe74183ceb7aedd71dd1afdf8755ee93e8c3ca (patch) | |
tree | 4c4d77a486baada80f0d99e40bef3b03562c3696 /Lib/pickletools.py | |
parent | 5eed340267868c54775b49613b81dff7eb2461bb (diff) | |
download | cpython-bdbe74183ceb7aedd71dd1afdf8755ee93e8c3ca.zip cpython-bdbe74183ceb7aedd71dd1afdf8755ee93e8c3ca.tar.gz cpython-bdbe74183ceb7aedd71dd1afdf8755ee93e8c3ca.tar.bz2 |
Documented the 2's-comp business for the new long opcodes.
Diffstat (limited to 'Lib/pickletools.py')
-rw-r--r-- | Lib/pickletools.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py index cbc265f..90df209 100644 --- a/Lib/pickletools.py +++ b/Lib/pickletools.py @@ -631,7 +631,7 @@ long1 = ArgumentDescriptor( doc="""A binary long, little-endian, using 1-byte size. This first reads one byte as an unsigned size, then reads that - many bytes and interprets them as a little-endian long. + many bytes and interprets them as a little-endian 2's-complement long. """) def read_long2(f): @@ -661,7 +661,7 @@ long2 = ArgumentDescriptor( doc="""A binary long, little-endian, using 2-byte size. This first reads two byte as an unsigned size, then reads that - many bytes and interprets them as a little-endian long. + many bytes and interprets them as a little-endian 2's-complement long. """) def read_long4(f): @@ -694,7 +694,7 @@ long4 = ArgumentDescriptor( This first reads four bytes as a signed size (but requires the size to be >= 0), then reads that many bytes and interprets them - as a little-endian long. + as a little-endian 2's-complement long. """) |