Re: doing "checksum" in python

2005-03-28 Thread Sean Blakey
On 28 Mar 2005 15:11:32 -0800, GujuBoy <[EMAIL PROTECTED]> wrote: > is there a built-in function that does a "checksum" on a file...basicly > counts the bytes and computes a 16-bit checksum for each given FILE. > > this is the like the "sum" command in unix > > -- > http://mail.python.org/mailman

Re: doing "checksum" in python

2005-03-28 Thread Irmen de Jong
GujuBoy wrote: > is there a built-in function that does a "checksum" on a file...basicly > counts the bytes and computes a 16-bit checksum for each given FILE. > > this is the like the "sum" command in unix > Try zlib.adler32 or zlib.crc32 ...? >>> import zlib >>> zlib.crc32(open("c:\\boot.ini