[Python-checkins] cpython (2.7): Issue #15250: Document that filecmp.dircmp compares files shallowly. Patch
senthil.kumaran
python-checkins at python.org
Mon Jul 23 04:36:58 CEST 2012
http://hg.python.org/cpython/rev/3921d3c71e64
changeset: 78252:3921d3c71e64
branch: 2.7
parent: 78247:9f500171c592
user: Senthil Kumaran <senthil at uthcode.com>
date: Sun Jul 22 19:36:03 2012 -0700
summary:
Issue #15250: Document that filecmp.dircmp compares files shallowly. Patch contributed by Chris Jerdonek.
files:
Doc/library/filecmp.rst | 11 ++++++++---
Misc/NEWS | 4 ++++
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/Doc/library/filecmp.rst b/Doc/library/filecmp.rst
--- a/Doc/library/filecmp.rst
+++ b/Doc/library/filecmp.rst
@@ -75,6 +75,9 @@
'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 @@
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 @@
.. 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
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -304,12 +304,16 @@
- Issue #14437: Fix building the _io module under Cygwin.
Documentation
+-------------
- Issue #13557: Clarify effect of giving two different namespaces to exec or
execfile().
- Issue #14034: added the argparse tutorial.
+- Issue #15250: Document that filecmp.dircmp compares files shallowly. Patch
+ contributed by Chris Jerdonek.
+
What's New in Python 2.7.3 release candidate 2?
===============================================
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list