diff options
author | Barry Warsaw <barry@python.org> | 2002-09-11 14:11:35 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-09-11 14:11:35 (GMT) |
commit | fbcde75c706b7de0e7455612dc15cc1d47763242 (patch) | |
tree | bcd1d03cec0985e4e0bb41134baa9aa5a0e4a762 /Lib | |
parent | 51a0ae3f97cdeccd57f733fd62417b59619e3bf7 (diff) | |
download | cpython-fbcde75c706b7de0e7455612dc15cc1d47763242.zip cpython-fbcde75c706b7de0e7455612dc15cc1d47763242.tar.gz cpython-fbcde75c706b7de0e7455612dc15cc1d47763242.tar.bz2 |
get_payload(): Document that calling it with no arguments returns a
reference to the payload.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/email/Message.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/email/Message.py b/Lib/email/Message.py index 326d0b8..c018ae7 100644 --- a/Lib/email/Message.py +++ b/Lib/email/Message.py @@ -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. |