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
cadc9fbd
Kaydet (Commit)
cadc9fbd
authored
May 16, 2002
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch 547037. Corrected documentation to match
actual module behavior for adding newlines.
üst
1e1fcef7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
libbase64.tex
Doc/lib/libbase64.tex
+6
-8
No files found.
Doc/lib/libbase64.tex
Dosyayı görüntüle @
cadc9fbd
...
...
@@ -40,21 +40,19 @@ Encode the contents of the \var{input} file and write the resulting
base64 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.
If the last input
character is not a newline (
\code
{
'
\e
n'
}
), a newline will be added to
the input data
.
\code
{
\var
{
input
}
.read()
}
returns an empty string.
\function
{
encode()
}
returns the encoded data plus a trailing newline character
(
\code
{
'
\e
n'
}
)
.
\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
base64-encoded data. If the last character of
\var
{
s
}
is not a
newline (
\code
{
'
\e
n'
}
), a newline will be added. This causes
\code
{
encodestring('hello!')
}
to return the same value as
\code
{
encodestring('hello!
\e
n')
}
.
base64-encoded data.
\function
{
encodestring()
}
returns a
string containing one or more lines of base64-encoded data
always including an extra trailing newline (
\code
{
'
\e
n'
}
).
\end{funcdesc}
\begin{seealso}
\seemodule
{
binascii
}{
Support module containing
\ASCII
-to-binary
and binary-to-
\ASCII
{}
conversions.
}
...
...
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