[Python-checkins] CVS: python/dist/src/Doc/ref ref5.tex,1.35,1.36
Skip Montanaro
python-dev@python.org
Wed, 23 Aug 2000 10:03:37 -0700
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory slayer.i.sourceforge.net:/tmp/cvs-serv4080
Modified Files:
ref5.tex
Log Message:
fix list comprehension discussion to use \keyword macro instead of simply
quoting keywords.
Index: ref5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref5.tex,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** ref5.tex 2000/08/22 02:43:06 1.35
--- ref5.tex 2000/08/23 17:03:34 1.36
***************
*** 165,172 ****
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
left to right, and evaluating the expression to produce a list element
each time the innermost block is reached.
--- 165,173 ----
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 \keyword{for} clause and zero or
! more \keyword{for} or \keyword{if} clauses. In this
case, the elements of the new list are those that would be produced
! by considering each of the \keyword{for} or \keyword{if} clauses a block,
! nesting from
left to right, and evaluating the expression to produce a list element
each time the innermost block is reached.