summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libposix.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-15 13:28:29 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-15 13:28:29 (GMT)
commitf35b884c918d5b754fa25f8cb47e67024cb29605 (patch)
treefb80ad0964d1e917e2ad3f4e20e6a736bf1193f2 /Doc/lib/libposix.tex
parentb7ffca393f3e00dc98c04a689ab6d11d968cc650 (diff)
downloadcpython-f35b884c918d5b754fa25f8cb47e67024cb29605.zip
cpython-f35b884c918d5b754fa25f8cb47e67024cb29605.tar.gz
cpython-f35b884c918d5b754fa25f8cb47e67024cb29605.tar.bz2
Clarify that close() of a stream opened by popen() returns None if the
exit status is zero.
Diffstat (limited to 'Doc/lib/libposix.tex')
-rw-r--r--Doc/lib/libposix.tex3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/lib/libposix.tex b/Doc/lib/libposix.tex
index e3f2929..45f74af 100644
--- a/Doc/lib/libposix.tex
+++ b/Doc/lib/libposix.tex
@@ -293,7 +293,8 @@ The \var{bufsize} argument has the same meaning as the corresponding
argument to the built-in \function{open()} function. The exit status of
the command (encoded in the format specified for \function{wait()}) is
available as the return value of the \method{close()} method of the file
-object.
+object, except that when the exit status is zero (termination without
+errors), \code{None} is returned.
(Not on MS-DOS.)
\end{funcdesc}