Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatch behaviour in documentation of email.Message.defects #128568

Open
RanKKI opened this issue Jan 7, 2025 · 0 comments
Open

Mismatch behaviour in documentation of email.Message.defects #128568

RanKKI opened this issue Jan 7, 2025 · 0 comments
Labels
docs Documentation in the Doc dir topic-email

Comments

@RanKKI
Copy link
Contributor

RanKKI commented Jan 7, 2025

Documentation

https://docs.python.org/3/library/email.message.html#email.message.EmailMessage.defects

The defects attribute contains a list of all the problems found when parsing this message. See email.errors for a detailed description of the possible parsing defects.


It actually does not include defects in the message headers (#106144, #90169). Until these issues are fixed, the documentation should state that header defects are not included in email.Message.defects.

Linked PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir topic-email
Projects
Status: Todo
Development

No branches or pull requests

2 participants