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
e76b7a8f
Kaydet (Commit)
e76b7a8f
authored
Nis 27, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added fnmatch, base64 and quopri, received from Andrew Kuchling.
üst
8be9a116
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
250 additions
and
1 deletion
+250
-1
Makefile
Doc/Makefile
+2
-1
lib.tex
Doc/lib.tex
+3
-0
lib.tex
Doc/lib/lib.tex
+3
-0
liballos.tex
Doc/lib/liballos.tex
+3
-0
libbase64.tex
Doc/lib/libbase64.tex
+43
-0
libfnmatch.tex
Doc/lib/libfnmatch.tex
+38
-0
libquopri.tex
Doc/lib/libquopri.tex
+31
-0
libwww.tex
Doc/lib/libwww.tex
+6
-0
liballos.tex
Doc/liballos.tex
+3
-0
libbase64.tex
Doc/libbase64.tex
+43
-0
libfnmatch.tex
Doc/libfnmatch.tex
+38
-0
libquopri.tex
Doc/libquopri.tex
+31
-0
libwww.tex
Doc/libwww.tex
+6
-0
No files found.
Doc/Makefile
Dosyayı görüntüle @
e76b7a8f
...
@@ -114,7 +114,8 @@ LIBFILES = lib.tex \
...
@@ -114,7 +114,8 @@ LIBFILES = lib.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 libglob.tex
\
libstat.tex libstrio.tex libundoc.tex libmailcap.tex libglob.tex
\
libuser.tex libanydbm.tex librandom.tex libsite.tex libwhichdb.tex
libuser.tex libanydbm.tex librandom.tex libsite.tex libwhichdb.tex
\
libbase64.tex libfnmatch.tex libquopri.tex
# Library document
# Library document
lib.dvi
:
$(LIBFILES)
lib.dvi
:
$(LIBFILES)
...
...
Doc/lib.tex
Dosyayı görüntüle @
e76b7a8f
...
@@ -112,6 +112,7 @@ to Python and how to embed it in other applications.
...
@@ -112,6 +112,7 @@ to Python and how to embed it in other applications.
\input
{
libtempfile
}
\input
{
libtempfile
}
\input
{
liberrno
}
\input
{
liberrno
}
\input
{
libglob
}
\input
{
libglob
}
\input
{
libfnmatch
}
\input
{
libsomeos
}
% Optional Operating System Services
\input
{
libsomeos
}
% Optional Operating System Services
\input
{
libsignal
}
\input
{
libsignal
}
...
@@ -156,6 +157,8 @@ to Python and how to embed it in other applications.
...
@@ -156,6 +157,8 @@ to Python and how to embed it in other applications.
\input
{
libbinascii
}
\input
{
libbinascii
}
\input
{
libxdrlib
}
\input
{
libxdrlib
}
\input
{
libmailcap
}
\input
{
libmailcap
}
\input
{
libbase64
}
\input
{
libquopri
}
\input
{
librestricted
}
\input
{
librestricted
}
\input
{
librexec
}
\input
{
librexec
}
...
...
Doc/lib/lib.tex
Dosyayı görüntüle @
e76b7a8f
...
@@ -112,6 +112,7 @@ to Python and how to embed it in other applications.
...
@@ -112,6 +112,7 @@ to Python and how to embed it in other applications.
\input
{
libtempfile
}
\input
{
libtempfile
}
\input
{
liberrno
}
\input
{
liberrno
}
\input
{
libglob
}
\input
{
libglob
}
\input
{
libfnmatch
}
\input
{
libsomeos
}
% Optional Operating System Services
\input
{
libsomeos
}
% Optional Operating System Services
\input
{
libsignal
}
\input
{
libsignal
}
...
@@ -156,6 +157,8 @@ to Python and how to embed it in other applications.
...
@@ -156,6 +157,8 @@ to Python and how to embed it in other applications.
\input
{
libbinascii
}
\input
{
libbinascii
}
\input
{
libxdrlib
}
\input
{
libxdrlib
}
\input
{
libmailcap
}
\input
{
libmailcap
}
\input
{
libbase64
}
\input
{
libquopri
}
\input
{
librestricted
}
\input
{
librestricted
}
\input
{
librexec
}
\input
{
librexec
}
...
...
Doc/lib/liballos.tex
Dosyayı görüntüle @
e76b7a8f
...
@@ -26,4 +26,7 @@ systems as well. Here's an overview:
...
@@ -26,4 +26,7 @@ systems as well. Here's an overview:
\item
[glob]
\item
[glob]
--- Unix shell style pathname pattern expansion.
--- Unix shell style pathname pattern expansion.
\item
[fnmatch]
--- Unix shell style pathname pattern matching.
\end{description}
\end{description}
Doc/lib/libbase64.tex
0 → 100644
Dosyayı görüntüle @
e76b7a8f
\section
{
Standard Module
\sectcode
{
base64
}}
\stmodindex
{
base64
}
This module perform base-64 encoding and decoding of arbitrary binary
strings into text strings that can be safely emailed or posted. The
encoding scheme is defined in RFC 1421 and is used for MIME email and
various other Internet-related applications; it is not the same as the
output produced by the
\file
{
uuencode
}
program. For example, the
string
\code
{
'www.python.org'
}
is encoded as the string
\code
{
'd3d3LnB5dGhvbi5vcmc=
\e
n'
}
.
\indexii
{
base-64
}{
encoding
}
\indexii
{
RFC
}{
1421
}
\index
{
MIME, base 64 encoding
}
\begin{funcdesc}
{
decode
}{
input
\,
output
}
Decode the contents of the
\var
{
input
}
file and write the resulting
binary data to the
\var
{
output
}
file.
\var
{
input
}
and
\var
{
output
}
must either be file objects or objects that
mimic the file object interface.
\var
{
input
}
will be read until
\code
{
\var
{
input
}
.read()
}
returns an empty string.
\end{funcdesc}
\begin{funcdesc}
{
decodestring
}{
s
}
Decode the string
\var
{
s
}
, which must contain one or more lines of
base-64 encoded data, and return a string containing the resulting
binary data.
\end{funcdesc}
\begin{funcdesc}
{
encode
}{
input
\,
output
}
Encode the contents of the
\var
{
input
}
file and write the resulting
base-64 encoded data to the
\var
{
output
}
file.
\var
{
input
}
and
\var
{
output
}
must either be file objects or objects that
mimic the file object interface.
\var
{
input
}
will be read until
\code
{
\var
{
input
}
.read()
}
returns an empty string.
\end{funcdesc}
\begin{funcdesc}
{
encodestring
}{
s
}
Encode the string
\var
{
s
}
, which can contain arbitrary binary data,
and return a string containing one or more lines of
base-64 encoded data.
\end{funcdesc}
Doc/lib/libfnmatch.tex
0 → 100644
Dosyayı görüntüle @
e76b7a8f
\section
{
Standard Module
\sectcode
{
fnmatch
}}
\stmodindex
{
fnmatch
}
This module provides support for Unix shell-style wildcards, which are
\emph
{
not
}
the same as Python's regular expressions (which are
documented in the
\code
{
regex
}
module). The special characters used
in shell-style wildcards are:
\begin{itemize}
\item
[\code{*}]
matches everything
\item
[\code{?}]
matches any single character
\item
[\code{[}\var{seq}\code{]
}
] matches any character in
\var
{
seq
}
\item
[\code{[!}\var{seq}\code{]
}
] matches any character not in
\var
{
seq
}
\end{itemize}
Note that the filename separator (
\code
{
'/'
}
on Unix) is
\emph
{
not
}
special to this module. See module
\code
{
glob
}
for pathname expansion
(
\code
{
glob
}
uses
\code
{
fnmatch
}
to match filename segments).
\begin{funcdesc}
{
fnmatch
}{
filename
\,
pattern
}
Test whether the
\var
{
filename
}
string matches the
\var
{
pattern
}
string, returning true or false. If the operating system is
case-insensitive, then both parameters will be normalized to all
lower- or upper-case before the comparision is performed. If you
require a case-sensitive comparision regardless of whether that's
standard for your operating system, use
\code
{
fnmatchcase()
}
instead.
\end{funcdesc}
\begin{funcdesc}
{
fnmatchcase
}{}
Test whether
\var
{
filename
}
matches
\var
{
pattern
}
, returning true or
false; the comparision is case-sensitive.
\end{funcdesc}
\begin{funcdesc}
{
translate
}{
pattern
}
Translate a shell pattern into a corresponding regular expression,
returning a string describing the pattern. It does not compile the
expression.
\end{funcdesc}
Doc/lib/libquopri.tex
0 → 100644
Dosyayı görüntüle @
e76b7a8f
\section
{
Standard Module
\sectcode
{
quopri
}}
\stmodindex
{
quopri
}
This module performs quoted-printable transport encoding and decoding,
as defined in RFC 1521: ``MIME (Multipurpose Internet Mail Extensions)
Part One''. The quoted-printable encoding is designed for data where
there are relatively few nonprintable characters; the base-64 encoding
scheme available via the
\code
{
base64
}
module is more compact if there
are many such characters, as when sending a graphics file.
\indexii
{
quoted printable
}{
encoding
}
\indexii
{
RFC
}{
1521
}
\index
{
MIME!quoted-printable encoding
}
\begin{funcdesc}
{
decode
}{
input
\,
output
}
Decode the contents of the
\var
{
input
}
file and write the resulting
decoded binary data to the
\var
{
output
}
file.
\var
{
input
}
and
\var
{
output
}
must either be file objects or objects that
mimic the file object interface.
\var
{
input
}
will be read until
\code
{
\var
{
input
}
.read()
}
returns an empty string.
\end{funcdesc}
\begin{funcdesc}
{
encode
}{
input
\,
output
\,
quotetabs
}
Encode the contents of the
\var
{
input
}
file and write the resulting
quoted-printable data to the
\var
{
output
}
file.
\var
{
input
}
and
\var
{
output
}
must either be file objects or objects that
mimic the file object interface.
\var
{
input
}
will be read until
\code
{
\var
{
input
}
.read()
}
returns an empty string.
\end{funcdesc}
Doc/lib/libwww.tex
Dosyayı görüntüle @
e76b7a8f
...
@@ -68,4 +68,10 @@ written by Sun Microsystems, Inc. June 1987.
...
@@ -68,4 +68,10 @@ written by Sun Microsystems, Inc. June 1987.
\item
[mailcap]
\item
[mailcap]
--- Mailcap file handling. See RFC 1524.
--- Mailcap file handling. See RFC 1524.
\item
[base64]
--- Encode/decode binary files using the MIME base64 encoding.
\item
[quopri]
--- Encode/decode binary files using the MIME quoted-printable encoding.
\end{description}
\end{description}
Doc/liballos.tex
Dosyayı görüntüle @
e76b7a8f
...
@@ -26,4 +26,7 @@ systems as well. Here's an overview:
...
@@ -26,4 +26,7 @@ systems as well. Here's an overview:
\item
[glob]
\item
[glob]
--- Unix shell style pathname pattern expansion.
--- Unix shell style pathname pattern expansion.
\item
[fnmatch]
--- Unix shell style pathname pattern matching.
\end{description}
\end{description}
Doc/libbase64.tex
0 → 100644
Dosyayı görüntüle @
e76b7a8f
\section
{
Standard Module
\sectcode
{
base64
}}
\stmodindex
{
base64
}
This module perform base-64 encoding and decoding of arbitrary binary
strings into text strings that can be safely emailed or posted. The
encoding scheme is defined in RFC 1421 and is used for MIME email and
various other Internet-related applications; it is not the same as the
output produced by the
\file
{
uuencode
}
program. For example, the
string
\code
{
'www.python.org'
}
is encoded as the string
\code
{
'd3d3LnB5dGhvbi5vcmc=
\e
n'
}
.
\indexii
{
base-64
}{
encoding
}
\indexii
{
RFC
}{
1421
}
\index
{
MIME, base 64 encoding
}
\begin{funcdesc}
{
decode
}{
input
\,
output
}
Decode the contents of the
\var
{
input
}
file and write the resulting
binary data to the
\var
{
output
}
file.
\var
{
input
}
and
\var
{
output
}
must either be file objects or objects that
mimic the file object interface.
\var
{
input
}
will be read until
\code
{
\var
{
input
}
.read()
}
returns an empty string.
\end{funcdesc}
\begin{funcdesc}
{
decodestring
}{
s
}
Decode the string
\var
{
s
}
, which must contain one or more lines of
base-64 encoded data, and return a string containing the resulting
binary data.
\end{funcdesc}
\begin{funcdesc}
{
encode
}{
input
\,
output
}
Encode the contents of the
\var
{
input
}
file and write the resulting
base-64 encoded data to the
\var
{
output
}
file.
\var
{
input
}
and
\var
{
output
}
must either be file objects or objects that
mimic the file object interface.
\var
{
input
}
will be read until
\code
{
\var
{
input
}
.read()
}
returns an empty string.
\end{funcdesc}
\begin{funcdesc}
{
encodestring
}{
s
}
Encode the string
\var
{
s
}
, which can contain arbitrary binary data,
and return a string containing one or more lines of
base-64 encoded data.
\end{funcdesc}
Doc/libfnmatch.tex
0 → 100644
Dosyayı görüntüle @
e76b7a8f
\section
{
Standard Module
\sectcode
{
fnmatch
}}
\stmodindex
{
fnmatch
}
This module provides support for Unix shell-style wildcards, which are
\emph
{
not
}
the same as Python's regular expressions (which are
documented in the
\code
{
regex
}
module). The special characters used
in shell-style wildcards are:
\begin{itemize}
\item
[\code{*}]
matches everything
\item
[\code{?}]
matches any single character
\item
[\code{[}\var{seq}\code{]
}
] matches any character in
\var
{
seq
}
\item
[\code{[!}\var{seq}\code{]
}
] matches any character not in
\var
{
seq
}
\end{itemize}
Note that the filename separator (
\code
{
'/'
}
on Unix) is
\emph
{
not
}
special to this module. See module
\code
{
glob
}
for pathname expansion
(
\code
{
glob
}
uses
\code
{
fnmatch
}
to match filename segments).
\begin{funcdesc}
{
fnmatch
}{
filename
\,
pattern
}
Test whether the
\var
{
filename
}
string matches the
\var
{
pattern
}
string, returning true or false. If the operating system is
case-insensitive, then both parameters will be normalized to all
lower- or upper-case before the comparision is performed. If you
require a case-sensitive comparision regardless of whether that's
standard for your operating system, use
\code
{
fnmatchcase()
}
instead.
\end{funcdesc}
\begin{funcdesc}
{
fnmatchcase
}{}
Test whether
\var
{
filename
}
matches
\var
{
pattern
}
, returning true or
false; the comparision is case-sensitive.
\end{funcdesc}
\begin{funcdesc}
{
translate
}{
pattern
}
Translate a shell pattern into a corresponding regular expression,
returning a string describing the pattern. It does not compile the
expression.
\end{funcdesc}
Doc/libquopri.tex
0 → 100644
Dosyayı görüntüle @
e76b7a8f
\section
{
Standard Module
\sectcode
{
quopri
}}
\stmodindex
{
quopri
}
This module performs quoted-printable transport encoding and decoding,
as defined in RFC 1521: ``MIME (Multipurpose Internet Mail Extensions)
Part One''. The quoted-printable encoding is designed for data where
there are relatively few nonprintable characters; the base-64 encoding
scheme available via the
\code
{
base64
}
module is more compact if there
are many such characters, as when sending a graphics file.
\indexii
{
quoted printable
}{
encoding
}
\indexii
{
RFC
}{
1521
}
\index
{
MIME!quoted-printable encoding
}
\begin{funcdesc}
{
decode
}{
input
\,
output
}
Decode the contents of the
\var
{
input
}
file and write the resulting
decoded binary data to the
\var
{
output
}
file.
\var
{
input
}
and
\var
{
output
}
must either be file objects or objects that
mimic the file object interface.
\var
{
input
}
will be read until
\code
{
\var
{
input
}
.read()
}
returns an empty string.
\end{funcdesc}
\begin{funcdesc}
{
encode
}{
input
\,
output
\,
quotetabs
}
Encode the contents of the
\var
{
input
}
file and write the resulting
quoted-printable data to the
\var
{
output
}
file.
\var
{
input
}
and
\var
{
output
}
must either be file objects or objects that
mimic the file object interface.
\var
{
input
}
will be read until
\code
{
\var
{
input
}
.read()
}
returns an empty string.
\end{funcdesc}
Doc/libwww.tex
Dosyayı görüntüle @
e76b7a8f
...
@@ -68,4 +68,10 @@ written by Sun Microsystems, Inc. June 1987.
...
@@ -68,4 +68,10 @@ written by Sun Microsystems, Inc. June 1987.
\item
[mailcap]
\item
[mailcap]
--- Mailcap file handling. See RFC 1524.
--- Mailcap file handling. See RFC 1524.
\item
[base64]
--- Encode/decode binary files using the MIME base64 encoding.
\item
[quopri]
--- Encode/decode binary files using the MIME quoted-printable encoding.
\end{description}
\end{description}
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