[issue46153] function fails in exec when locals is given
Steven D'Aprano
report at bugs.python.org
Wed Dec 22 13:19:19 EST 2021
Steven D'Aprano <steve+python at pearwood.info> added the comment:
"Expected" is a strong word. It took me a lot of careful reading of the
documentation and experimentation to decide that, yes, I expect the
second case to fail when the first case succeeds.
Which reminds me of a common anecdote from mathematics:
https://hsm.stackexchange.com/questions/7247/in-a-popular-anecdote-who-took-20-minutes-to-decide-that-a-thing-was-obvious
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46153>
_______________________________________
More information about the Python-bugs-list
mailing list