[Python-Dev] PYC Magic

Tim Peters tim.one@comcast.net
Sat, 01 Jun 2002 12:50:29 -0400


[Guido]
> Long digits are only 15 bits, so if you change it to return an
> unsigned short that shouldn't matter.  Dunno if there's magic for
> negative numbers though (in memory, the length is negative, but the
> digits are not).

The marshal format is the same:  signed length and unsigned digits.  The
signed length goes thru [rw]_long.