Grant Edwards wrote:
We all rail against premature optimization, but using a checksum instead of a direct comparison is premature unoptimization. ;)
And more than that, will provide false positives for some inputs.So, basically it's a worse-than-useless approach for determining if two files are the same.
n -- http://mail.python.org/mailman/listinfo/python-list