Re: [Python-Dev] [Python-checkins] python/dist/src/Doc/whatsnew whatsnew25.tex, 1.18, 1.19
akuchling@users.sourceforge.net wrote:
Update of /cvsroot/python/python/dist/src/Doc/whatsnew In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29055
Modified Files: whatsnew25.tex Log Message: Write section on PEP 342
Index: whatsnew25.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew25.tex,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- whatsnew25.tex 23 Aug 2005 00:56:06 -0000 1.18 +++ whatsnew25.tex 27 Aug 2005 18:45:47 -0000 1.19 [snip] +\begin{verbatim} +>>> it = counter(10) +>>> print it.next() +0 +>>> print it.next() +1 +>>> print it.send(8) +8 +>>> print it.next() +9 +>>> print it.next() +Traceback (most recent call last): + File ``t.py'', line 15, in ? + print it.next() +StopIteration
+Because \keyword{yield} will often be returning \constant{None}, +you shouldn't just use its value in expressions unless you're sure +that only the \method{send()} method will be used.
This part creates a syntax error. \begin{verbatim} does not have its end tag. - george
participants (1)
-
George Yoshida