]> granicus.if.org Git - python/commitdiff
Clarify that close() of a stream opened by popen() returns None if the
authorGuido van Rossum <guido@python.org>
Thu, 15 Oct 1998 13:28:29 +0000 (13:28 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 15 Oct 1998 13:28:29 +0000 (13:28 +0000)
exit status is zero.

Doc/lib/libposix.tex

index e3f2929a7cc3717325b100143aa2f3c8a57c77ba..45f74af49639ab6557b507fbb9ba6090c91e981f 100644 (file)
@@ -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}