This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients Grzegorz Krasoń, steven.daprano
Date 2019-07-22.00:15:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563754541.44.0.772894325995.issue37646@roundup.psfhosted.org>
In-reply-to
Content
What leads you to believe that eval *shouldn't* work in the global scope in a comprehension?

If not the global scope, which scope should it be, local or nonlocal? Is the behaviour documented differently?

For reference, the current docs for eval are here:
https://docs.python.org/3.5/library/functions.html#eval
History
Date User Action Args
2019-07-22 00:15:41steven.dapranosetrecipients: + steven.daprano, Grzegorz Krasoń
2019-07-22 00:15:41steven.dapranosetmessageid: <1563754541.44.0.772894325995.issue37646@roundup.psfhosted.org>
2019-07-22 00:15:41steven.dapranolinkissue37646 messages
2019-07-22 00:15:41steven.dapranocreate