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 krichter
Recipients docs@python, krichter
Date 2014-06-12.19:17:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402600679.26.0.179499997563.issue21739@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-06-12 19:17:59krichtersetrecipients: + krichter, docs@python
2014-06-12 19:17:59krichtersetmessageid: <1402600679.26.0.179499997563.issue21739@psf.upfronthosting.co.za>
2014-06-12 19:17:59krichterlinkissue21739 messages
2014-06-12 19:17:59krichtercreate