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
e6d579dd
Kaydet (Commit)
e6d579dd
authored
Mar 25, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added docs for glob
üst
20af95b4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
77 additions
and
5 deletions
+77
-5
Makefile
Doc/Makefile
+1
-1
liballos.tex
Doc/lib/liballos.tex
+3
-0
libglob.tex
Doc/lib/libglob.tex
+35
-0
libundoc.tex
Doc/lib/libundoc.tex
+0
-2
liballos.tex
Doc/liballos.tex
+3
-0
libglob.tex
Doc/libglob.tex
+35
-0
libundoc.tex
Doc/libundoc.tex
+0
-2
No files found.
Doc/Makefile
Dosyayı görüntüle @
e6d579dd
...
@@ -113,7 +113,7 @@ LIBFILES = lib.tex \
...
@@ -113,7 +113,7 @@ LIBFILES = lib.tex \
libxdrlib.tex libimghdr.tex
\
libxdrlib.tex libimghdr.tex
\
librestricted.tex librexec.tex libbastion.tex
\
librestricted.tex librexec.tex libbastion.tex
\
libformatter.tex liboperator.tex libsoundex.tex libresource.tex
\
libformatter.tex liboperator.tex libsoundex.tex libresource.tex
\
libstat.tex libstrio.tex libundoc.tex libmailcap.tex
libstat.tex libstrio.tex libundoc.tex libmailcap.tex
libglob.tex
# Library document
# Library document
lib.dvi
:
$(LIBFILES)
lib.dvi
:
$(LIBFILES)
...
...
Doc/lib/liballos.tex
Dosyayı görüntüle @
e6d579dd
...
@@ -23,4 +23,7 @@ systems as well. Here's an overview:
...
@@ -23,4 +23,7 @@ systems as well. Here's an overview:
\item
[errno]
\item
[errno]
--- Standard errno system symbols.
--- Standard errno system symbols.
\item
[glob]
--- Unix shell style pathname pattern expansion.
\end{description}
\end{description}
Doc/lib/libglob.tex
0 → 100644
Dosyayı görüntüle @
e6d579dd
\section
{
Standard Module
\sectcode
{
glob
}}
\stmodindex
{
glob
}
\renewcommand
{
\indexsubitem
}{
(in module glob)
}
The
\code
{
glob
}
module finds all the pathnames matching a specified
pattern according to the rules used by the
\UNIX
{}
shell. No tilde
expansion is done, but
\verb
\
*
\
,
\verb
\
?
\
, and character ranges
expressed with
\verb
\
[]
\
will be correctly matched. This is done by
using the
\code
{
os.listdir()
}
and
\code
{
fnmatch.fnmatch()
}
functions
in concert, and not by actually invoking a subshell. (For tilde and
shell variable expansion, use
\code
{
os.path.expanduser(
}
) and
\code
{
os.path.expandvars()
}
.)
\begin{funcdesc}
{
glob
}{
pathname
}
Returns a possibly-empty list of path names that match
\var
{
pathname
}
,
which must be a string containing a path specification.
\var
{
pathname
}
can be either absolute (like
\file
{
/usr/src/Python1.4/Makefile
}
) or relative (like
\file
{
../../Tools/*.gif
}
), and can contain shell-style wildcards.
\end{funcdesc}
For example, consider a directory containing only the following files:
\file
{
1.gif
}
,
\file
{
2.txt
}
, and
\file
{
card.gif
}
.
\code
{
glob.glob()
}
will produce the following results. Notice how any leading components
of the path are preserved.
\begin{verbatim}
>>> import glob
>>> glob.glob('./[0-9].*')
['./1.gif', './2.txt']
>>> glob.glob('*.gif')
['1.gif', 'card.gif']
>>> glob.glob('?.gif')
['1.gif']
\end{verbatim}
Doc/lib/libundoc.tex
Dosyayı görüntüle @
e6d579dd
...
@@ -53,8 +53,6 @@ quopri.py -- Conversions to/from quoted-printable transport encoding
...
@@ -53,8 +53,6 @@ quopri.py -- Conversions to/from quoted-printable transport encoding
Some of these are very old and/or not very robust; marked with ``hmm''.
Some of these are very old and/or not very robust; marked with ``hmm''.
glob.py -- filename globbing (high level interface)
fnmatch.py -- filename globbing (low level interface)
fnmatch.py -- filename globbing (low level interface)
calendar.py -- Calendar printing functions
calendar.py -- Calendar printing functions
...
...
Doc/liballos.tex
Dosyayı görüntüle @
e6d579dd
...
@@ -23,4 +23,7 @@ systems as well. Here's an overview:
...
@@ -23,4 +23,7 @@ systems as well. Here's an overview:
\item
[errno]
\item
[errno]
--- Standard errno system symbols.
--- Standard errno system symbols.
\item
[glob]
--- Unix shell style pathname pattern expansion.
\end{description}
\end{description}
Doc/libglob.tex
0 → 100644
Dosyayı görüntüle @
e6d579dd
\section
{
Standard Module
\sectcode
{
glob
}}
\stmodindex
{
glob
}
\renewcommand
{
\indexsubitem
}{
(in module glob)
}
The
\code
{
glob
}
module finds all the pathnames matching a specified
pattern according to the rules used by the
\UNIX
{}
shell. No tilde
expansion is done, but
\verb
\
*
\
,
\verb
\
?
\
, and character ranges
expressed with
\verb
\
[]
\
will be correctly matched. This is done by
using the
\code
{
os.listdir()
}
and
\code
{
fnmatch.fnmatch()
}
functions
in concert, and not by actually invoking a subshell. (For tilde and
shell variable expansion, use
\code
{
os.path.expanduser(
}
) and
\code
{
os.path.expandvars()
}
.)
\begin{funcdesc}
{
glob
}{
pathname
}
Returns a possibly-empty list of path names that match
\var
{
pathname
}
,
which must be a string containing a path specification.
\var
{
pathname
}
can be either absolute (like
\file
{
/usr/src/Python1.4/Makefile
}
) or relative (like
\file
{
../../Tools/*.gif
}
), and can contain shell-style wildcards.
\end{funcdesc}
For example, consider a directory containing only the following files:
\file
{
1.gif
}
,
\file
{
2.txt
}
, and
\file
{
card.gif
}
.
\code
{
glob.glob()
}
will produce the following results. Notice how any leading components
of the path are preserved.
\begin{verbatim}
>>> import glob
>>> glob.glob('./[0-9].*')
['./1.gif', './2.txt']
>>> glob.glob('*.gif')
['1.gif', 'card.gif']
>>> glob.glob('?.gif')
['1.gif']
\end{verbatim}
Doc/libundoc.tex
Dosyayı görüntüle @
e6d579dd
...
@@ -53,8 +53,6 @@ quopri.py -- Conversions to/from quoted-printable transport encoding
...
@@ -53,8 +53,6 @@ quopri.py -- Conversions to/from quoted-printable transport encoding
Some of these are very old and/or not very robust; marked with ``hmm''.
Some of these are very old and/or not very robust; marked with ``hmm''.
glob.py -- filename globbing (high level interface)
fnmatch.py -- filename globbing (low level interface)
fnmatch.py -- filename globbing (low level interface)
calendar.py -- Calendar printing functions
calendar.py -- Calendar printing functions
...
...
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