Prevent CO_FUTURE_BARRY_AS_BDFL from being applied with PyCF_MASK #123234
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
When compiling Python strings with the
PyCF_MASK
, theCO_FUTURE_BARRY_AS_BDFL
is included and will be applied to the statement. It would be preferable if the PEP 401 easter egg was not applied to code compiled with thePyCF_MASK
compiler flag by default.Example:
Will result change the result to
1 <> 2
.CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS, Windows
The text was updated successfully, but these errors were encountered: