[issue42958] filecmp.cmp(shallow=True) isn't actually shallow when only mtime differs

Christof Hanke report at bugs.python.org
Tue Jul 13 01:44:46 EDT 2021


Christof Hanke <christof.hanke at mpcdf.mpg.de> added the comment:

Andrei,
cmp is the deep-compare part of filecmp. I thought we were taking about the shallow one.

Thus,
- shallow like rsync "quick": size + mtime.
- deep like cmp

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42958>
_______________________________________


More information about the Python-bugs-list mailing list