[Python-checkins] CVS: python/nondist/peps pep-0255.txt,1.15,1.16

Tim Peters tim_one@users.sourceforge.net
2001年8月14日 21:40:25 -0700


Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv9866
Modified Files:
	pep-0255.txt 
Log Message:
Tie a couple loose ends so Barry can put this to bed.
Index: pep-0255.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0255.txt,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** pep-0255.txt	2001年07月17日 04:28:28	1.15
--- pep-0255.txt	2001年08月15日 04:40:23	1.16
***************
*** 170,173 ****
--- 170,186 ----
 purpose to bear.
 
+ Restriction: A generator cannot be resumed while it is actively
+ running:
+ 
+ >>> def g():
+ ... i = me.next()
+ ... yield i
+ >>> me = g()
+ >>> me.next()
+ Traceback (most recent call last):
+ ...
+ File "<string>", line 2, in g
+ ValueError: generator already executing
+ 
 
 Specification: Return
***************
*** 383,388 ****
 >> 3
 << 3
 
! A: Did I miss one <wink>? Out of hundreds of messages, I counted two
 suggesting such an alternative, and extracted the above from them.
 It would be nice not to need a new keyword, but nicer to make yield
--- 396,402 ----
 >> 3
 << 3
+ * 3
 
! A: Did I miss one <wink>? Out of hundreds of messages, I counted three
 suggesting such an alternative, and extracted the above from them.
 It would be nice not to need a new keyword, but nicer to make yield
***************
*** 448,454 ****
 Reference Implementation
 
! The current implementation, in a preliminary state (no docs), is part
! of Python's CVS development tree[9]. Using this requires that you
! build Python from source.
 
 This was derived from an earlier patch by Neil Schemenauer[7].
--- 462,468 ----
 Reference Implementation
 
! The current implementation, in a preliminary state (no docs, but well
! tested and solid), is part of Python's CVS development tree[9]. Using
! this requires that you build Python from source.
 
 This was derived from an earlier patch by Neil Schemenauer[7].

AltStyle によって変換されたページ (->オリジナル) /