Message248077
Then fix the documentation. This behavior directly contradicts the documentation of the exec() function. The question is not what scope the comprehension runs in, it's what scope the script runs in. See my third example. A comprehension in the f() function has no problem seeing local variables defined in that function. If the script were running into the same scope as that function, then comprehensions inside the script would also see those variables. They don't, clearly demonstrating that the script does *not* run in the same scope, and contradicting the documentation. |
|
Date |
User |
Action |
Args |
2015-08-05 20:48:22 | Peter Eastman | set | recipients:
+ Peter Eastman, r.david.murray |
2015-08-05 20:48:22 | Peter Eastman | set | messageid: <1438807702.34.0.656039705623.issue24800@psf.upfronthosting.co.za> |
2015-08-05 20:48:22 | Peter Eastman | link | issue24800 messages |
2015-08-05 20:48:22 | Peter Eastman | create | |
|