Georg Brandl ge...@python.org added the comment:
Will be fixed along with all other such instances.
--
resolution: - postponed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5951
Loic Jaquemet loic.jaquemet+pyt...@gmail.com added the comment:
Ok, I understand.
Thx
+ - I need to learn python
:/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5951
___
R. David Murray rdmur...@bitdance.com added the comment:
No fault of yours, it's a real doc bug. I've been programming in python
since 1997 or so, and I had to read the source code to figure it out
when I went to use get_payload a couple months ago. That's why your bug
report caught my eye.
New submission from jal loic.jaquemet+pyt...@gmail.com:
From documentation :
http://docs.python.org/library/email.message.html?highlight=email#email.message.Message.get_payload
get_payload([i[, decode]])
With optional argument i,[..] If the payload is a string (i.e.
is_multipart() is False)
Changes by jal loic.jaquemet+pyt...@gmail.com:
--
versions: +Python 2.4, Python 2.5, Python 2.7, Python 3.0, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5951
___
R. David Murray rdmur...@bitdance.com added the comment:
The answer is that you do msg.get_payload(decode=True). The doc needs
to be changed over to use keyword argument specification syntax, which I
think would make that obvious.
--
nosy: +r.david.murray
versions: -Python 2.4, Python