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
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