struct enhancements?

Larry Bates lbates at syscononline.com
Thu Apr 7 11:05:07 EDT 2005


Can't address the 8-byte longs, but to strip off null padding
in strings you merely do

s=s.rstrip('\x00')

Larry Bates


lee_merrill at yahoo.com wrote:
> 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,
> Lee
> 



More information about the Python-list mailing list