mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Clarify that close() of a stream opened by popen() returns None if the
exit status is zero.
This commit is contained in:
parent
b7ffca393f
commit
f35b884c91
1 changed files with 2 additions and 1 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue