Hi everyone,
I would like to be able to pack/unpack 8-byte longs, and have strings
with null padding to be able to have the nulls trimmed off
automatically.
Just thought I would mention these two items on my wish list, since I
searched a bit, and haven't yet found a mention of this...
Regards,
L
Thanks! I have 16 zillion ... well 16,000 strings that need trimming.
Lee
Larry Bates wrote:
> Can't address the 8-byte longs, but to strip off null padding
> in strings you merely do
>
> s=s.rstrip('\x00')
>
> Larry Bates
--
http://mail.python.org/mailman/listinfo/python-list