[Python-checkins] CVS: python/dist/src/Doc/ref ref5.tex,1.34,1.35

Skip Montanaro python-dev@python.org
Mon, 21 Aug 2000 19:43:09 -0700


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory slayer.i.sourceforge.net:/tmp/cvs-serv4225/Doc/ref

Modified Files:
	ref5.tex 
Log Message:
require list comprehensions to start with a for clause


Index: ref5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref5.tex,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** ref5.tex	2000/08/15 18:44:10	1.34
--- ref5.tex	2000/08/22 02:43:06	1.35
***************
*** 154,158 ****
  \begin{verbatim}
  list_display:   "[" [listmaker] "]"
! listmaker:   expression ( list_iter | ( "," expression)* [","] )
  list_iter:   list_for | list_if
  list_for:    "for" expression_list "in" testlist [list_iter]
--- 154,158 ----
  \begin{verbatim}
  list_display:   "[" [listmaker] "]"
! listmaker:   expression ( list_for | ( "," expression)* [","] )
  list_iter:   list_for | list_if
  list_for:    "for" expression_list "in" testlist [list_iter]
***************
*** 165,169 ****
  evaluated from left to right and placed into the list object in that
  order.  When a list comprehension is supplied, it consists of a
! single expression followed by one or more "for" or "if" clauses.  In this
  case, the elements of the new list are those that would be produced
  by considering each of the "for" or "if" clauses a block, nesting from
--- 165,170 ----
  evaluated from left to right and placed into the list object in that
  order.  When a list comprehension is supplied, it consists of a
! single expression followed by at least one "for" clause and zero or  more
! "for" or "if" clauses.  In this 
  case, the elements of the new list are those that would be produced
  by considering each of the "for" or "if" clauses a block, nesting from