[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier
R. David Murray
report at bugs.python.org
Thu Sep 8 13:12:42 EDT 2016
R. David Murray added the comment:
I would suggest something like:
<email.message.Message instance at 0xXXXXXXX with NN headers and MM MIME parts>
<email.message.Message instance at 0xXXXXXXX with NN headers and MM body lines>
The second case should be rare these days for email, but would (I think?) show 0 body lines for an HTTPMessage. If I'm right it might actually make sense to have a separate repr for HTTPMessage that omitted the body line count.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24337>
_______________________________________
More information about the Python-bugs-list
mailing list