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
8c740c4d
Kaydet (Commit)
8c740c4d
authored
May 29, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improved docs for issue27033. Based on comments by R. David Murray.
üst
ea083faf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
smtpd.rst
Doc/library/smtpd.rst
+5
-5
3.6.rst
Doc/whatsnew/3.6.rst
+8
-0
No files found.
Doc/library/smtpd.rst
Dosyayı görüntüle @
8c740c4d
...
...
@@ -52,8 +52,8 @@ SMTPServer Objects
cannot be set to ``True`` at the same time.
*decode_data* specifies whether the data portion of the SMTP transaction
should be decoded using UTF-8.
The default is ``False``. When
*decode_data* is not set to ``True``
the server advertises the ``8BITMIME``
should be decoded using UTF-8.
When *decode_data* is ``False`` (the
default),
the server advertises the ``8BITMIME``
extension (:rfc:`6152`), accepts the ``BODY=8BITMIME`` parameter to
the ``MAIL`` command, and when present passes it to :meth:`process_message`
in the ``kwargs['mail_options']`` list. *decode_data* and *enable_SMTPUTF8*
...
...
@@ -70,7 +70,7 @@ SMTPServer Objects
format).
If the *decode_data* constructor keyword is set to ``True``, the *data*
parameter
will be a unicode string. If it is set to ``False``, it
argument
will be a unicode string. If it is set to ``False``, it
will be a bytes object.
*kwargs* is a dictionary containing additional information. It is empty
...
...
@@ -107,8 +107,8 @@ SMTPServer Objects
.. versionadded:: 3.5
The *decode_data* and *enable_SMTPUTF8* constructor parameters, and the
*kwargs* parameter to :meth:`process_message` when
one or more of these
is
specified
.
*kwargs* parameter to :meth:`process_message` when
*decode_data*
is
``False``
.
.. versionchanged:: 3.6
*decode_data* is now ``False`` by default.
...
...
Doc/whatsnew/3.6.rst
Dosyayı görüntüle @
8c740c4d
...
...
@@ -640,6 +640,14 @@ Changes in the Python API
an error (e.g. EBADF) was reported by the underlying system call.
See :issue:`26685`.
* The *decode_data* argument for :class:`smtpd.SMTPChannel` and
:class:`smtpd.SMTPServer` constructors is now ``False`` by default.
This means that the argument passed to
:meth:`~smtpd.SMTPServer.process_message` is now a bytes object by
default, and ``process_message()`` will be passed keyword arguments.
Code that has already been updated in accordance with the deprecation
warning generated by 3.5 will not be affected.
Changes in the C API
--------------------
...
...
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