Skip to content

Commit bdbe741

Browse files
committed
Documented the 2's-comp business for the new long opcodes.
1 parent 5eed340 commit bdbe741

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

β€ŽLib/pickletools.pyβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def read_long1(f):
631631
doc="""A binary long, little-endian, using 1-byte size.
632632
633633
This first reads one byte as an unsigned size, then reads that
634-
many bytes and interprets them as a little-endian long.
634+
many bytes and interprets them as a little-endian 2's-complement long.
635635
""")
636636

637637
def read_long2(f):
@@ -661,7 +661,7 @@ def read_long2(f):
661661
doc="""A binary long, little-endian, using 2-byte size.
662662
663663
This first reads two byte as an unsigned size, then reads that
664-
many bytes and interprets them as a little-endian long.
664+
many bytes and interprets them as a little-endian 2's-complement long.
665665
""")
666666

667667
def read_long4(f):
@@ -694,7 +694,7 @@ def read_long4(f):
694694
695695
This first reads four bytes as a signed size (but requires the
696696
size to be >= 0), then reads that many bytes and interprets them
697-
as a little-endian long.
697+
as a little-endian 2's-complement long.
698698
""")
699699

700700

0 commit comments

Comments
 (0)