[issue33896] filecmp.cmp returns True on files that differ

2018-06-18 Thread Dean Morin
Dean Morin added the comment: Fair enough, how about just making it clearer in the documentation? Currently you need to look at the source code to see what would be required for a signature clash to occur. Maybe something like: Note that the [os.stat()](https://docs.python.org/3/library

[issue33896] filecmp.cmp returns True on files that differ

2018-06-18 Thread Dean Morin
New submission from Dean Morin : By default `filecmp.cmp()` has `shallow=True` which can produce some surprising behavior. In the docs it states: > If shallow is true, files with identical os.stat() signatures are taken to be > equal. However the "signature" only conside