BUG? sha-moduel returns same crc for different files

alex_holubec alex_holubec at email.msn.com
Mon Sep 18 02:06:23 CEST 2000


Another Solution.
Hashing is an overkill. The following method has been used by Herr Professor
Doktor Niklaus Wirth :-)
in Project Oberon: open both files in binary mode and compare byte by byte.
Very simple and fast.

Alex

"jepler epler" <jepler.lnk at lnk.ispi.net> wrote in message
news:slrn8s5b26.6rr.jepler.lnk at potty.housenet...
> Solutions:
> 1. use open(filename, "b")
> 2. don't use windows
>
> You're getting the file truncated (probably at the first chr(26)) and
> the leading portions are identical.
>
> Jeff




More information about the Python-list mailing list