Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-24337: Implement email.message.Message.__repr__() #18127
Conversation
@@ -134,6 +134,10 @@ def __str__(self): | |||
""" | |||
return self.as_string() | |||
|
|||
def __repr__(self): | |||
return f"{self.__class__.__name__} with {len(self._headers)} " \ | |||
f"headers and Content-Type {self._default_type}" |
This comment has been minimized.
This comment has been minimized.
bitdancer
Jan 22, 2020
Member
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.
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Jan 22, 2020
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 commentedJan 22, 2020
•
edited by bedevere-bot
https://bugs.python.org/issue24337