[Python-checkins] python/dist/src/Doc/whatsnew whatsnew24.tex, 1.46, 1.47

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Thu May 20 18:59:29 EDT 2004


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

Modified Files:
	whatsnew24.tex 
Log Message:
Clarify when iter() is first called in generator expressions.



Index: whatsnew24.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew24.tex,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** whatsnew24.tex	19 May 2004 22:30:25 -0000	1.46
--- whatsnew24.tex	20 May 2004 22:59:26 -0000	1.47
***************
*** 106,116 ****
  
  \begin{verbatim}
!     def _generator(exp):
          for var1 in exp:
              for var2 in exp2:
                  if exp3:
                      yield tgtexp
!     g = _generator(exp1)
!     del _generator
  \end{verbatim}
  
--- 106,116 ----
  
  \begin{verbatim}
!     def __gen(exp):
          for var1 in exp:
              for var2 in exp2:
                  if exp3:
                      yield tgtexp
!     g = __gen(iter(exp1))
!     del __gen
  \end{verbatim}
  




More information about the Python-checkins mailing list