Message220374
It would be useful to have a short statement in the docs (https://docs.python.org/2/tutorial/datastructures.html#list-comprehensions) that the expression in a list comprehension isn't put into a block, but evaluated against the same block where it is located because intuitively one might think that variables can be overridden in the statement.
This applies to both 2.7 and 3.4.1. |
|
Date |
User |
Action |
Args |
2014-06-12 19:17:59 | krichter | set | recipients:
+ krichter, docs@python |
2014-06-12 19:17:59 | krichter | set | messageid: <1402600679.26.0.179499997563.issue21739@psf.upfronthosting.co.za> |
2014-06-12 19:17:59 | krichter | link | issue21739 messages |
2014-06-12 19:17:59 | krichter | create | |
|