Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ba7e2c8a
Kaydet (Commit)
ba7e2c8a
authored
May 11, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add some text to make the dircmp object section more readable, and move
some stuff around.
üst
87068f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
libfilecmp.tex
Doc/lib/libfilecmp.tex
+16
-7
No files found.
Doc/lib/libfilecmp.tex
Dosyayı görüntüle @
ba7e2c8a
...
...
@@ -6,10 +6,10 @@
\modulesynopsis
{
Compare files efficiently.
}
The
\module
{
filecmp
}
module defines functions to compare files and
directories,
with various optional time/correctness trade-offs.
The
\module
{
filecmp
}
module defines functions to compare files and
directories,
with various optional time/correctness trade-offs.
The
\module
{
filecmp
}
module defines the following function:
The
\module
{
filecmp
}
module defines the following function
s
:
\begin{funcdesc}
{
cmp
}{
f1, f2
\optional
{
, shallow
\optional
{
, use
_
statcache
}}}
Compare the files named
\var
{
f1
}
and
\var
{
f2
}
, returning
\code
{
1
}
if
...
...
@@ -58,6 +58,8 @@ Example:
\subsection
{
The
\protect\class
{
dircmp
}
class
\label
{
dircmp-objects
}}
\class
{
dircmp
}
instances are built using this constructor:
\begin{classdesc}
{
dircmp
}{
a, b
\optional
{
, ignore
\optional
{
, hide
}}}
Construct a new directory comparison object, to compare the
directories
\var
{
a
}
and
\var
{
b
}
.
\var
{
ignore
}
is a list of names to
...
...
@@ -65,6 +67,8 @@ ignore, and defaults to \code{['RCS', 'CVS', 'tags']}. \var{hide} is a
list of names to hide, and defaults to
\code
{
[os.curdir, os.pardir]
}
.
\end{classdesc}
The
\class
{
dircmp
}
class provides the following methods:
\begin{methoddesc}
[dircmp]
{
report
}{}
Print (to
\code
{
sys.stdout
}
) a comparison between
\var
{
a
}
and
\var
{
b
}
.
\end{methoddesc}
...
...
@@ -79,6 +83,15 @@ Print a comparison between \var{a} and \var{b} and common
subdirctories (recursively).
\end{methoddesc}
The
\class
{
dircmp
}
offers a number of interesting attributes that may
be used to get various bits of information about the directory trees
being compared.
Note that via
\method
{__
getattr
__
()
}
hooks, all attributes are
computed lazilly, so there is no speed penalty if only those
attributes which are lightweight to compute are used.
\begin{memberdesc}
[dircmp]
{
left
_
list
}
Files and subdirectories in
\var
{
a
}
, filtered by
\var
{
hide
}
and
\var
{
ignore
}
.
...
...
@@ -132,7 +145,3 @@ compared.
A dictionary mapping names in
\member
{
common
_
dirs
}
to
\class
{
dircmp
}
objects.
\end{memberdesc}
Note that via
\method
{__
getattr
__
()
}
hooks, all attributes are
computed lazilly, so there is no speed penalty if only those
attributes which are lightweight to compute are used.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment