Christof Hanke added the comment:
Andrei,
See https://bugs.python.org/issue42958
Someone else stumbled over this topic.
Maybe you can merge these two requests?
Otherwise, I'm fine with a new arg.
Christof
--
___
Python tracker
&
Christof Hanke added the comment:
Hi,
this is also discussed in https://bugs.python.org/issue41354.
Ciao,
Christof
--
nosy: +chanke
___
Python tracker
<https://bugs.python.org/issue42
Christof Hanke added the comment:
Hi Andrei,
I would follow rsync.
>From the man page:
"""
[...]
-c, --checksum
This changes the way rsync checks if the files have been changed
and are in need of a transfer. Without this option, rsync
uses
Christof Hanke 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
<https://bu
Christof Hanke added the comment:
I understand that you are reluctant to change existing code.
But for me as a sysadmin, the current behavior doesn't make sense for two
reasons:
* st.st_size is part of _sig. why would you do a deep compare if the two
files have a different l
New submission from Christof Hanke :
help(filecmp.cmp) says:
"""
cmp(f1, f2, shallow=True)
Compare two files.
Arguments:
f1 -- First file name
f2 -- Second file name
shallow -- Just check stat signature (do not read the files).
Change by Christof Hanke :
--
keywords: +patch
pull_requests: +20722
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21580
___
Python tracker
<https://bugs.python.org/issu
New submission from Christof Hanke:
On https://docs.python.org/2/library/argparse.html (and on those of the
3.6-Version) it says at the bottom:
"""
ArgumentParser.error(message)
This method prints a usage message including the message to the standard
error and termina