[Python-checkins] python/dist/src/Doc/ref ref5.tex,1.81,1.82

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Sat Aug 7 21:16:35 CEST 2004


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8867

Modified Files:
	ref5.tex 
Log Message:
[Bug #827209] Add footnote from Alex M. about listcomps leaking their index variables

Index: ref5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref5.tex,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** ref5.tex	2 Jun 2004 12:54:33 -0000	1.81
--- ref5.tex	7 Aug 2004 19:16:32 -0000	1.82
***************
*** 185,189 ****
  nesting from
  left to right, and evaluating the expression to produce a list element
! each time the innermost block is reached.
  \obindex{list}
  \indexii{empty}{list}
--- 185,193 ----
  nesting from
  left to right, and evaluating the expression to produce a list element
! each time the innermost block is reached\footnote{In Python 2.3, a
! list comprehension "leaks" the control variables of each
! \samp{for} it contains into the containing scope.  However, this
! behavior is deprecated, and relying on it will not work once this
! bug is fixed in a future release}.
  \obindex{list}
  \indexii{empty}{list}



More information about the Python-checkins mailing list