diff options
author | Skip Montanaro <skip@pobox.com> | 2000-09-11 16:31:55 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2000-09-11 16:31:55 (GMT) |
commit | b655939d691938c1fec2eff46535d24416340cbc (patch) | |
tree | 003444711678d80b65b2749a71e8d0c20af9baf2 | |
parent | 0932cb44997b9b5228c2bf01fe563cdae33a63c3 (diff) | |
download | cpython-b655939d691938c1fec2eff46535d24416340cbc.zip cpython-b655939d691938c1fec2eff46535d24416340cbc.tar.gz cpython-b655939d691938c1fec2eff46535d24416340cbc.tar.bz2 |
add index entries for list comprehensions
-rw-r--r-- | Doc/ref/ref5.tex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index 55725d1..1d2f6fe 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -147,6 +147,7 @@ pass uncaught. \subsection{List displays\label{lists}} \indexii{list}{display} +\indexii{list}{comprehensions} A list display is a possibly empty series of expressions enclosed in square brackets: @@ -161,6 +162,7 @@ list_if: "if" test [list_iter] A list display yields a new list object. Its contents are specified by providing either a list of expressions or a list comprehension. +\indexii{list}{comprehensions} When a comma-separated list of expressions is supplied, its elements are evaluated from left to right and placed into the list object in that order. When a list comprehension is supplied, it consists of a |