[Pythonmac-SIG] Bug in cmp()?

Robin Siebler Robin.Siebler@palmsource.com
Fri, 13 Sep 2002 12:34:35 -0700


Ack!  I'm obviously trying to do too many different things at the same =
time today!  I *should* have been using filecmp.cmp().

<in the voice of Gilda Radner's little old lady> "Nevermind"

-----Original Message-----
From: Just van Rossum [mailto:just@letterror.com]
Sent: Friday, September 13, 2002 12:32 PM
To: Robin Siebler
Cc: pythonmac-sig@python.org
Subject: Re: [Pythonmac-SIG] Bug in cmp()?


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