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
a55d132f
Kaydet (Commit)
a55d132f
authored
Eki 09, 2001
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add documentation for the MIMEAudio class/module, contributed by
Anthony Baxter.
üst
938a8d72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
email.tex
Doc/lib/email.tex
+26
-0
No files found.
Doc/lib/email.tex
Dosyayı görüntüle @
a55d132f
...
...
@@ -107,6 +107,32 @@ The \class{MIMEBase} class always adds a \mailheader{Content-Type} header
\mailheader
{
MIME-Version
}
header (always set to
\code
{
1.0
}
).
\end{classdesc}
\begin{classdesc}
{
MIMEAudio
}{_
audiodata
\optional
{
,
_
subtype
\optional
{
,
_
encoder
\optional
{
, **
_
params
}}}}
A subclass of
\class
{
MIMEBase
}
, the
\class
{
MIMEAudio
}
class is used to
create MIME message objects of major type
\mimetype
{
audio
}
.
\var
{_
audiodata
}
is a string containing the raw image data. If this
data can be decoded by the standard Python module
\refmodule
{
sndhdr
}
,
then the subtype will be automatically included in the
\mailheader
{
Content-Type
}
header. Otherwise you can explicitly specify the
audio subtype via the
\var
{_
subtype
}
parameter. If the minor type could
not be guessed and
\var
{_
subtype
}
was not given, then
\exception
{
TypeError
}
is raised.
Optional
\var
{_
encoder
}
is a callable (i.e. function) which will
perform the actual encoding of the audio data for transport. This
callable takes one argument, which is the
\class
{
MIMEAudio
}
instance.
It should use
\method
{
get
_
payload()
}
and
\method
{
set
_
payload()
}
to
change the payload to encoded form. It should also add any
\mailheader
{
Content-Transfer-Encoding
}
or other headers to the message
object as necessary. The default encoding is
\emph
{
Base64
}
. See the
\refmodule
{
email.Encoders
}
module for a list of the built-in encoders.
\var
{_
params
}
are passed straight through to the
\class
{
MIMEBase
}
constructor.
\end{classdesc}
\begin{classdesc}
{
MIMEImage
}{_
imagedata
\optional
{
,
_
subtype
\optional
{
,
_
encoder
\optional
{
, **
_
params
}}}}
...
...
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