[docs] [issue13549] Incorrect nested list comprehension documentation

Terry J. Reedy report at bugs.python.org
Sat Dec 10 04:47:43 CET 2011


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Showing both was the intent of my comment. Since I am about 60:40 on that, I was and am  willing for you, having grabbed and pushed the issue, to drop the half-expanded version if you thought it better. With or without, we have improved this section. But I still think showing the intermediate step adds sufficient extra clarity to be worth the 5 or 6 extra lines. While nested list comps are not scary, they can, as I discovered, be confusing with a rushed reading. Anyone who wants to compress nested append loops should also do it in two steps.

----------

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


More information about the docs mailing list