summaryrefslogtreecommitdiffstats
path: root/Doc/ref/ref6.tex
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-08-29 04:57:34 (GMT)
committerBarry Warsaw <barry@python.org>2000-08-29 04:57:34 (GMT)
commit33f785fc1e94987bb05cc3c5d16cd961f728c5b4 (patch)
treed583c7eaa67202995456f8f9eaf43ebd2e75cfde /Doc/ref/ref6.tex
parent9182b45a5a9670c316f1391bc31f824191d8e3ef (diff)
downloadcpython-33f785fc1e94987bb05cc3c5d16cd961f728c5b4.zip
cpython-33f785fc1e94987bb05cc3c5d16cd961f728c5b4.tar.gz
cpython-33f785fc1e94987bb05cc3c5d16cd961f728c5b4.tar.bz2
Document "print >> None"
Diffstat (limited to 'Doc/ref/ref6.tex')
-rw-r--r--Doc/ref/ref6.tex7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex
index 1821485..ddeb30d 100644
--- a/Doc/ref/ref6.tex
+++ b/Doc/ref/ref6.tex
@@ -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}