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
mangle_from_ default in email.policy.Policy.__doc__ is wrong #118455
Labels
Comments
sobolevn
added a commit
that referenced
this issue
May 5, 2024
…c__ (#118456) * Fix mangle_from_ default value in email.policy.Policy.__doc__ The docstring says it defaults to True, but it actually defaults to False. Only the Compat32 subclass overrides that. --------- Co-authored-by: Nikita Sobolev <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 5, 2024
…y.__doc__ (pythonGH-118456) * Fix mangle_from_ default value in email.policy.Policy.__doc__ The docstring says it defaults to True, but it actually defaults to False. Only the Compat32 subclass overrides that. --------- (cherry picked from commit fed8d73) Co-authored-by: wim glenn <[email protected]> Co-authored-by: Nikita Sobolev <[email protected]>
sobolevn
added a commit
that referenced
this issue
May 5, 2024
…cy.__doc__ (GH-118456) (#118586) gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ (GH-118456) * Fix mangle_from_ default value in email.policy.Policy.__doc__ The docstring says it defaults to True, but it actually defaults to False. Only the Compat32 subclass overrides that. --------- (cherry picked from commit fed8d73) Co-authored-by: wim glenn <[email protected]> Co-authored-by: Nikita Sobolev <[email protected]>
I think this can be closed now, right? Not sure why this didn't auto-close when the PR was merged. |
SonicField
pushed a commit
to SonicField/cpython
that referenced
this issue
May 8, 2024
…y.__doc__ (python#118456) * Fix mangle_from_ default value in email.policy.Policy.__doc__ The docstring says it defaults to True, but it actually defaults to False. Only the Compat32 subclass overrides that. --------- Co-authored-by: Nikita Sobolev <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
This attribute was added in fdb23c2 and was always False by default, as far as I can see.
The docs also correctly say that it defaults to False. I don't know why the class docstring says otherwise.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: