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
7c0a2271
Kaydet (Commit)
7c0a2271
authored
Eki 08, 2010
tarafından
R. David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
What's new entry for email 5.1.
üst
d7931095
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
email.rst
Doc/library/email.rst
+1
-1
3.2.rst
Doc/whatsnew/3.2.rst
+28
-0
No files found.
Doc/library/email.rst
Dosyayı görüntüle @
7c0a2271
...
@@ -118,7 +118,7 @@ version 5.0:
...
@@ -118,7 +118,7 @@ version 5.0:
convert
message
bodies
that
have
a
:
mailheader
:`
Content
-
Transfer
-
Encoding
`
of
convert
message
bodies
that
have
a
:
mailheader
:`
Content
-
Transfer
-
Encoding
`
of
8
bit
to
instead
have
a
7
bit
Content
-
Transfer
-
Encoding
.
8
bit
to
instead
have
a
7
bit
Content
-
Transfer
-
Encoding
.
*
New
function
:
class
:`~
email
.
generator
.
BytesGenerator
`
produces
bytes
*
New
class
:
class
:`~
email
.
generator
.
BytesGenerator
`
produces
bytes
as
output
,
preserving
any
unchanged
non
-
ASCII
data
that
was
as
output
,
preserving
any
unchanged
non
-
ASCII
data
that
was
present
in
the
input
used
to
build
the
model
,
including
message
bodies
present
in
the
input
used
to
build
the
model
,
including
message
bodies
with
a
:
mailheader
:`
Content
-
Transfer
-
Encoding
`
of
8
bit
.
with
a
:
mailheader
:`
Content
-
Transfer
-
Encoding
`
of
8
bit
.
...
...
Doc/whatsnew/3.2.rst
Dosyayı görüntüle @
7c0a2271
...
@@ -184,6 +184,34 @@ module::
...
@@ -184,6 +184,34 @@ module::
PEP written by Barry Warsaw.
PEP written by Barry Warsaw.
Email 5.1
=========
The email package is extended to be able to parse and generate email messages
in bytes format.
* New functions :func:`~email.message_from_bytes` and
:func:`~email.message_from_binary_file`, and new classes
:class:`~email.parser.BytesFeedParser` and :class:`~email.parser.BytesParser`
allow binary message data to be parsed into model objects.
* Given bytes input to the model, :meth:`~email.message.Message.get_payload`
will by default decode a message body that has a
:mailheader:`Content-Transfer-Encoding` of `8bit` using the charset specified
in the MIME headers and return the resulting string.
* Given bytes input to the model, :class:`~email.generator.Generator` will
convert message bodies that have a :mailheader:`Content-Transfer-Encoding` of
8bit to instead have a 7bit Content-Transfer-Encoding.
* New class :class:`~email.generator.BytesGenerator` produces bytes
as output, preserving any unchanged non-ASCII data that was
present in the input used to build the model, including message bodies
with a :mailheader:`Content-Transfer-Encoding` of 8bit.
(Proposed and implemented by R. David Murray, :issue:`4661`.)
Other Language Changes
Other Language Changes
======================
======================
...
...
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