[issue45862] Anomaly of eval() of list comprehension
David Pratten
report at bugs.python.org
Mon Nov 22 03:43:33 EST 2021
David Pratten <david at prattenmail.com> added the comment:
Hi Mark,
Thanks.
The anomaly is that the print("eg def2", ...) works. Should it not fail in the same way that print("eg def4", ...) does.
David
On 22/11/2021 7:36:31 PM, Mark Dickinson <report at bugs.python.org> wrote:
Mark Dickinson added the comment:
Thanks for the report. The behaviour is by design: see #5242 (especially msg81898) for an explanation.
Closing this issue as a duplicate of #5242.
----------
nosy: +mark.dickinson
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> eval() function in List Comprehension doesn't work
_______________________________________
Python tracker
_______________________________________
[755e9508-5fde-465a-ac8e-d82585c103f3]
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45862>
_______________________________________
More information about the Python-bugs-list
mailing list