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

2020-02-13 Thread Demian Brecht
Change by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-01-22 Thread R. David Murray
R. David Murray added the comment: Thanks for the PR, but I've noted an issue on the review. In any case we should agree on what goes in the repr here in this issue before actually implementing anything. -- ___ Python tracker

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

2020-01-22 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.9 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

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

2020-01-22 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +17514 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18127 ___ Python tracker ___

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

2016-09-08 Thread R. David Murray
R. David Murray added the comment: I would suggest something like: 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

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

2015-05-31 Thread Ram Rachum
Changes by Ram Rachum r...@rachum.com: -- components: Library (Lib) nosy: cool-RR priority: normal severity: normal status: open title: Implement `http.client.HTTPMessage.__repr__` to make debugging easier type: enhancement versions: Python 3.5 ___

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

2015-05-31 Thread Martin Panter
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

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

2015-05-31 Thread Ram Rachum
Ram Rachum added the comment: Regarding a unified `__repr__`: Sounds good. What I needed is to know whether there are any headers in there or not. So the number of headers, or the first 2-3, would have solved my problem. -- ___ Python tracker