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
fbcde75c
Kaydet (Commit)
fbcde75c
authored
Eyl 11, 2002
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
get_payload(): Document that calling it with no arguments returns a
reference to the payload.
üst
51a0ae3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Message.py
Lib/email/Message.py
+3
-2
No files found.
Lib/email/Message.py
Dosyayı görüntüle @
fbcde75c
...
...
@@ -150,8 +150,10 @@ class Message:
self
.
_payload
.
append
(
payload
)
def
get_payload
(
self
,
i
=
None
,
decode
=
0
):
"""Return
the current payload exactly as is
.
"""Return
a reference to the payload
.
The payload is typically either a list object or a string. If you
mutate the list object, you modify the message's payload in place.
Optional i returns that index into the payload.
Optional decode is a flag indicating whether the payload should be
...
...
@@ -180,7 +182,6 @@ class Message:
# unchanged.
return
payload
def
set_payload
(
self
,
payload
,
charset
=
None
):
"""Set the payload to the given value.
...
...
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