[Pythonmac-SIG] Bug in cmp()?

Just van Rossum just@letterror.com
Fri, 13 Sep 2002 21:31:49 +0200


Robin Siebler wrote:

> I have 2 files that *should* be identical.  According to 'diff -s',
> they are.  However, comparing the two files using cmp() results in a
> return value of '-1'.

The cmp() function compares two objects, not files. How exactly are you using
it?

Just