Mercurial > cpython-lru_cache-weakref
annotate Doc/library/filecmp.rst @ 54294:dba767bc3155 legacy-trunk
remove mention of old ctypes version
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 23 May 2009 20:59:09 +0000 |
| parents | 8ed3cbac16bf |
| children | 8838c56b6952 d143eb624cf5 |
| rev | line source |
|---|---|
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
1 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
2 :mod:`filecmp` --- File and Directory Comparisons |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
3 ================================================= |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
4 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
5 .. module:: filecmp |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
6 :synopsis: Compare files efficiently. |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
7 .. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il> |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
8 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
9 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
10 The :mod:`filecmp` module defines functions to compare files and directories, |
|
43737
3d866579117d
#1370: Finish the merge r58749, log below, by resolving all conflicts in Doc/.
Georg Brandl <georg@python.org>
parents:
42604
diff
changeset
|
11 with various optional time/correctness trade-offs. For comparing files, |
|
3d866579117d
#1370: Finish the merge r58749, log below, by resolving all conflicts in Doc/.
Georg Brandl <georg@python.org>
parents:
42604
diff
changeset
|
12 see also the :mod:`difflib` module. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
13 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
14 The :mod:`filecmp` module defines the following functions: |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
15 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
16 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
17 .. function:: cmp(f1, f2[, shallow]) |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
18 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
19 Compare the files named *f1* and *f2*, returning ``True`` if they seem equal, |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
20 ``False`` otherwise. |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
21 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
22 Unless *shallow* is given and is false, files with identical :func:`os.stat` |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
23 signatures are taken to be equal. |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
24 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
25 Files that were compared using this function will not be compared again unless |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
26 their :func:`os.stat` signature changes. |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
27 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
28 Note that no external programs are called from this function, giving it |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
29 portability and efficiency. |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
30 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
31 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
32 .. function:: cmpfiles(dir1, dir2, common[, shallow]) |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
33 |
|
52105
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
34 Compare the files in the two directories *dir1* and *dir2* whose names are |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
35 given by *common*. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
36 |
|
52105
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
37 Returns three lists of file names: *match*, *mismatch*, |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
38 *errors*. *match* contains the list of files that match, *mismatch* contains |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
39 the names of those that don't, and *errors* lists the names of files which |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
40 could not be compared. Files are listed in *errors* if they don't exist in |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
41 one of the directories, the user lacks permission to read them or if the |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
42 comparison could not be done for some other reason. |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
43 |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
44 The *shallow* parameter has the same meaning and default value as for |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
45 :func:`filecmp.cmp`. |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
46 |
|
52105
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
47 For example, ``cmpfiles('a', 'b', ['c', 'd/e'])`` will compare ``a/c`` with |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
48 ``b/c`` and ``a/d/e`` with ``b/d/e``. ``'c'`` and ``'d/e'`` will each be in |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
49 one of the three returned lists. |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
50 |
|
8ed3cbac16bf
Merged revisions 70282-70283 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
46556
diff
changeset
|
51 |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
52 Example:: |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
53 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
54 >>> import filecmp |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
55 >>> filecmp.cmp('undoc.rst', 'undoc.rst') |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
56 True |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
57 >>> filecmp.cmp('undoc.rst', 'index.rst') |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
58 False |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
59 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
60 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
61 .. _dircmp-objects: |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
62 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
63 The :class:`dircmp` class |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
64 ------------------------- |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
65 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
66 :class:`dircmp` instances are built using this constructor: |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
67 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
68 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
69 .. class:: dircmp(a, b[, ignore[, hide]]) |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
70 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
71 Construct a new directory comparison object, to compare the directories *a* and |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
72 *b*. *ignore* is a list of names to ignore, and defaults to ``['RCS', 'CVS', |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
73 'tags']``. *hide* is a list of names to hide, and defaults to ``[os.curdir, |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
74 os.pardir]``. |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
75 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
76 The :class:`dircmp` class provides the following methods: |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
77 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
78 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
79 .. method:: report() |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
80 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
81 Print (to ``sys.stdout``) a comparison between *a* and *b*. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
82 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
83 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
84 .. method:: report_partial_closure() |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
85 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
86 Print a comparison between *a* and *b* and common immediate |
|
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
87 subdirectories. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
88 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
89 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
90 .. method:: report_full_closure() |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
91 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
92 Print a comparison between *a* and *b* and common subdirectories |
|
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
93 (recursively). |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
94 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
95 The :class:`dircmp` offers a number of interesting attributes that may be |
|
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
96 used to get various bits of information about the directory trees being |
|
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
97 compared. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
98 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
99 Note that via :meth:`__getattr__` hooks, all attributes are computed lazily, |
|
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
100 so there is no speed penalty if only those attributes which are lightweight |
|
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
101 to compute are used. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
102 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
103 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
104 .. attribute:: left_list |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
105 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
106 Files and subdirectories in *a*, filtered by *hide* and *ignore*. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
107 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
108 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
109 .. attribute:: right_list |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
110 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
111 Files and subdirectories in *b*, filtered by *hide* and *ignore*. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
112 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
113 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
114 .. attribute:: common |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
115 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
116 Files and subdirectories in both *a* and *b*. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
117 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
118 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
119 .. attribute:: left_only |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
120 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
121 Files and subdirectories only in *a*. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
122 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
123 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
124 .. attribute:: right_only |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
125 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
126 Files and subdirectories only in *b*. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
127 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
128 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
129 .. attribute:: common_dirs |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
130 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
131 Subdirectories in both *a* and *b*. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
132 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
133 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
134 .. attribute:: common_files |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
135 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
136 Files in both *a* and *b* |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
137 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
138 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
139 .. attribute:: common_funny |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
140 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
141 Names in both *a* and *b*, such that the type differs between the |
|
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
142 directories, or names for which :func:`os.stat` reports an error. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
143 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
144 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
145 .. attribute:: same_files |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
146 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
147 Files which are identical in both *a* and *b*. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
148 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
149 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
150 .. attribute:: diff_files |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
151 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
152 Files which are in both *a* and *b*, whose contents differ. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
153 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
154 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
155 .. attribute:: funny_files |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
156 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
157 Files which are in both *a* and *b*, but could not be compared. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
158 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
159 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
160 .. attribute:: subdirs |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
161 |
|
46556
8b718fc15f3d
Merged revisions 62490 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
43737
diff
changeset
|
162 A dictionary mapping names in :attr:`common_dirs` to :class:`dircmp` objects. |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
163 |
