[Python-checkins] python/nondist/peps pep-0340.txt,1.21,1.22
gvanrossum at users.sourceforge.net
Wed May 4 03:03:20 CEST 2005
Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15670
Clarify that there are some separable items.
RCS file: /cvsroot/python/python/nondist/peps/pep-0340.txt,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- pep-0340.txt 3 May 2005 23:51:54 -0000 1.21
+++ pep-0340.txt 4 May 2005 01:03:17 -0000 1.22
@@ -22,6 +22,21 @@
(Reliable Acquisition/Release Pairs), and PEP 325
(Resource-Release Support for Generators).
+ I should clarify that there are a few separable proposals in this
+ - Using "continue EXPR" which calls its.__next__(EXPR) which
+ becomes the return value of a yield-expression is entirely
+ orthogonal with the rest of the PEP.
+ - Similarly, using a generator to "drive" a block statement is
+ also separable; with just the definition of the block statement
+ from the PEP you could implement all the examples using a class
+ (similar to example 6, which is easily turned into a template).
+ But the key idea is using a generator to drive a block statement;
+ the rest is elaboration.
Motivation and Summary
(Thanks to Shane Hathaway -- Hi Shane!)
More information about the Python-checkins