>>> from email.policy import Policy
>>> Policy.mangle_from_
False
>>> print(Policy.__doc__)
...
mangle_from_ -- a flag that, when True escapes From_ lines in the
body of the message by putting a `>' in front of
them. This is used when the message is being
serialized by a generator. Default: True.
...
Bug report
Bug description:
This attribute was added in https://github.com/python/cpython/commit/fdb23c2fe5499d26701fa34873c1cdc347adcb80 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