[docs] [issue20402] List comprehensions should be noted in for loop documentation

Raymond Hettinger report at bugs.python.org
Sun Aug 3 00:33:01 CEST 2014


Raymond Hettinger added the comment:

We do have prominent entries in the glossary and tutorial:

https://docs.python.org/2.7/glossary.html#term-list-comprehension
https://docs.python.org/2.7/tutorial/datastructures.html#list-comprehensions

Moving it earlier in the tutorial is likely to do more harm than help.  In teaching Python, you need some gap between learning for-loops and learning list comprehensions (the former is a prerequisite for the latter).

----------
assignee: docs at python -> rhettinger
nosy: +rhettinger
versions:  -Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20402>
_______________________________________


More information about the docs mailing list