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

Rob Lanphier report at bugs.python.org
Mon Jan 27 04:24:16 CET 2014


New submission from Rob Lanphier:

The current list comprehension documentation is difficult to find for someone who doesn't know what a list comprehension is.  Example of this problem:
http://www.reddit.com/r/learnprogramming/comments/1w6slm/different_kind_of_for_loop_python/

Since list comprehensions are a riff off of "for" loop syntax, they should at least be noted and linked to from section 4.2 ("for statements" section) and quite possibly 5.6 ("Looping constructs")

----------
assignee: docs at python
components: Documentation
messages: 209380
nosy: docs at python, robla
priority: normal
severity: normal
status: open
title: List comprehensions should be noted in for loop documentation
type: enhancement

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


More information about the Python-bugs-list mailing list