]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document "print >> None"
authorBarry Warsaw <barry@python.org>
Tue, 29 Aug 2000 04:57:34 +0000 (04:57 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 29 Aug 2000 04:57:34 +0000 (04:57 +0000)
Doc/ref/ref6.tex

index 182148532cfdba23c6266f2ee94c2befb307760d..ddeb30d3816d168796566fedfb5fd51f31a46408 100644 (file)
@@ -338,9 +338,10 @@ print_stmt: '>>' expression [ (',' expression)+ [','] ] )
 
 In this form, the first expression after the \keyword{>>} must
 evaluate to a ``file-like'' object, specifically an object that has a
-\method{write()} method as described above.  With the extended form,
-the subsequent expressions are printed to this file-like object
-instead of \code{sys.stdout}.
+\method{write()} method as described above.  With this extended form,
+the subsequent expressions are printed to this file object.  If the
+first expression evaluates to \code{None}, then \code{sys.stdout} is
+used as the file for output.
 
 \section{The \keyword{return} statement \label{return}}
 \stindex{return}