filecmp.cmp() doesn't seem to do what it says in the documentation

2010-09-06 Thread tinnews
I'm using filecmp.cmp() to compare some files (surprise!). The documentation says:- Unless shallow is given and is false, files with identical os.stat() signatures are taken to be equal. I'm not setting shallow explicitly so it's True, thus the function should be comparing the os.stat()

Re: filecmp.cmp() doesn't seem to do what it says in the documentation

2010-09-06 Thread Terry Reedy
On 9/6/2010 1:18 PM, tinn...@isbd.co.uk wrote: I'm using filecmp.cmp() to compare some files (surprise!). The documentation says:- Unless shallow is given and is false, files with identical os.stat() signatures are taken to be equal. Reword and read carefully: if shallow == True and

Re: filecmp.cmp() doesn't seem to do what it says in the documentation

2010-09-06 Thread tinnews
Terry Reedy tjre...@udel.edu wrote: On 9/6/2010 1:18 PM, tinn...@isbd.co.uk wrote: I'm using filecmp.cmp() to compare some files (surprise!). The documentation says:- Unless shallow is given and is false, files with identical os.stat() signatures are taken to be equal.

Re: filecmp.cmp() doesn't seem to do what it says in the documentation

2010-09-06 Thread Carl Banks
On Sep 6, 1:11 pm, tinn...@isbd.co.uk wrote: Terry Reedy tjre...@udel.edu wrote: On 9/6/2010 1:18 PM, tinn...@isbd.co.uk wrote: I'm using filecmp.cmp() to compare some files (surprise!). The documentation says:-      Unless shallow is given and is false, files with identical