[Python-checkins] python/nondist/peps pep-0340.txt,1.17,1.18

gvanrossum@users.sourceforge.net gvanrossum at users.sourceforge.net
Tue May 3 19:21:21 CEST 2005


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29297

Modified Files:
	pep-0340.txt 
Log Message:
saving_stdout -> redirecting_stdout (Phillip Eby).


Index: pep-0340.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0340.txt,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- pep-0340.txt	3 May 2005 16:57:17 -0000	1.17
+++ pep-0340.txt	3 May 2005 17:21:13 -0000	1.18
@@ -581,7 +581,7 @@
 
     7. Redirect stdout temporarily:
 
-        def saving_stdout(new_stdout):
+        def redirecting_stdout(new_stdout):
             save_stdout = sys.stdout
             try:
                 sys.stdout = new_stdout
@@ -592,7 +592,7 @@
        Used as follows:
 
         block opening(filename, "w") as f:
-            block saving_stdout(f):
+            block redirecting_stdout(f):
                 print "Hello world"
 
 Acknowledgements



More information about the Python-checkins mailing list