diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-07-23 02:31:36 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-07-23 02:31:36 (GMT) |
commit | d74062948d890ca787721dbefd3ab8caf518c554 (patch) | |
tree | 6510ceb02560441b030e84f4942b119ae871cf5a /Doc | |
parent | 4fb6b0a104ebc2a94638100d013b1d2e917373ba (diff) | |
parent | 28a9f2193ade4e0f12d3110d2f199b07f342eff8 (diff) | |
download | cpython-d74062948d890ca787721dbefd3ab8caf518c554.zip cpython-d74062948d890ca787721dbefd3ab8caf518c554.tar.gz cpython-d74062948d890ca787721dbefd3ab8caf518c554.tar.bz2 |
- Issue #15250: Document that filecmp.dircmp compares files shallowly. Patch contributed by Chris Jerdonek.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/filecmp.rst | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Doc/library/filecmp.rst b/Doc/library/filecmp.rst index e0ffff7..f84cfa9 100644 --- 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` offers a number of interesting attributes that may be + 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*. + Files which are identical in both *a* and *b*, using the class's + file comparison operator. .. attribute:: diff_files - Files which are in both *a* and *b*, whose contents differ. + Files which are in both *a* and *b*, whose contents differ according + to the class's file comparison operator. .. attribute:: funny_files |