消息 [348272]
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 |
|
| 日期 |
用户 |
动作 |
参数 |
| 2019-07-22 00:15:41 | steven.daprano | 修改 | recipients:
+ steven.daprano, Grzegorz Krasoń |
| 2019-07-22 00:15:41 | steven.daprano | 修改 | messageid: <1563754541.44.0.772894325995.issue37646@roundup.psfhosted.org> |
| 2019-07-22 00:15:41 | steven.daprano | 链接 | issue37646 messages |
| 2019-07-22 00:15:41 | steven.daprano | 创建 | |
|