[Python-checkins] python/nondist/peps pep-0340.txt,1.20,1.21
gvanrossum@users.sourceforge.net
gvanrossum at users.sourceforge.net
Wed May 4 01:51:56 CEST 2005
Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31381
Modified Files:
pep-0340.txt
Log Message:
Fix a remnant of the old proposal found by Tim Delaney.
Index: pep-0340.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0340.txt,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- pep-0340.txt 3 May 2005 22:23:32 -0000 1.20
+++ pep-0340.txt 3 May 2005 23:51:54 -0000 1.21
@@ -327,14 +327,14 @@
body.
When __next__() is called with an argument that is not None, the
- yield-expression that it resumes will return the value attribute
- of the argument. If it resumes a yield-statement, the value is
- ignored (this is similar to ignoring the value returned by a
- function call). When the *initial* call to __next__() receives an
- argument that is not None, TypeError is raised; this is likely
- caused by some logic error. When __next__() is called without an
- argument or with None as argument, and a yield-expression is
- resumed, the yield-expression returns None.
+ yield-expression that it resumes will return the argument. If it
+ resumes a yield-statement, the value is ignored (this is similar
+ to ignoring the value returned by a function call). When the
+ *initial* call to __next__() receives an argument that is not
+ None, TypeError is raised; this is likely caused by some logic
+ error. When __next__() is called without an argument or with None
+ as argument, and a yield-expression is resumed, the
+ yield-expression returns None.
When a generator that has not yet terminated is garbage-collected
(either through reference counting or by the cyclical garbage
More information about the Python-checkins
mailing list