gh-68525: Implement email.message.Message.__repr__()#18127
gh-68525: Implement email.message.Message.__repr__()#18127ZackerySpytz wants to merge 2 commits into
Conversation
|
|
||
| def __repr__(self): | ||
| return f"{self.__class__.__name__} with {len(self._headers)} " \ | ||
| f"headers and Content-Type {self._default_type}" |
There was a problem hiding this comment.
This doesn't match the suggestion in the issue. self._default_type is also wrong, since that's just the default, not the actual content-type of the message (which comes from the headers).
What exactly goes in the repr should be discussed further in the issue.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
@ZackerySpytz please address the code review. Thank you! |
|
This PR is stale because it has been open for 30 days with no activity. |
https://bugs.python.org/issue24337
http.client.HTTPMessage.__repr__to make debugging easier #68525