cpython: 3921d3c71e64 (original) (raw)
Mercurial > cpython
changeset 78252:3921d3c71e64 2.7
Issue #15250: Document that filecmp.dircmp compares files shallowly. Patch contributed by Chris Jerdonek. [#15250]
Senthil Kumaran senthil@uthcode.com | |
---|---|
date | Sun, 22 Jul 2012 19:36:03 -0700 |
parents | 9f500171c592 |
children | dbe7f39ff341 |
files | Doc/library/filecmp.rst Misc/NEWS |
diffstat | 2 files changed, 12 insertions(+), 3 deletions(-)[+] [-] Doc/library/filecmp.rst 11 Misc/NEWS 4 |
line wrap: on
line diff
--- a/Doc/library/filecmp.rst
+++ b/Doc/library/filecmp.rst
@@ -75,6 +75,9 @@ The :class:dircmp
class
'tags']. *hide* is a list of names to hide, and defaults to
[os.curdir,
os.pardir]``.
- The :class:
dircmp
class compares files by doing shallow comparisons - as described for :func:
filecmp.cmp
. + The :class:dircmp
class provides the following methods:
@@ -94,7 +97,7 @@ The :class:dircmp
class
Print a comparison between a and b and common subdirectories
(recursively).
- The :class:
dircmp
class offers a number of interesting attributes that may be used to get various bits of information about the directory trees being compared.
@@ -146,12 +149,14 @@ The :class:dircmp
class
.. attribute:: same_files
Files which are identical in both *a* and *b*.[](#l1.26)
Files which are identical in both *a* and *b*, using the class's[](#l1.27)
file comparison operator.[](#l1.28)
Files which are in both *a* and *b*, whose contents differ.[](#l1.33)
Files which are in both *a* and *b*, whose contents differ according[](#l1.34)
to the class's file comparison operator.[](#l1.35)