[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

Martin Panter report at bugs.python.org
Sun May 31 13:23:29 CEST 2015


New submission from Martin Panter:

HTTPMessage essentially has exactly the same functionality as email.message.Message. It has been suggested to replace it with an alias to the Message class; see Issue 5053. So perhaps it would be best to add __repr__() to the underlying Message class instead?

What information do you think should be included? The whole tostring() value? Specific header fields, such as Content-Type?

----------
components: +email
nosy: +barry, r.david.murray, vadmium

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24337>
_______________________________________


More information about the Python-bugs-list mailing list