Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c71c23e

Browse files
committed
Added \versionchanged comment to os.popen() noting that it was unreliable
in earlier versions of Python; this is useful information for people interested in writing code that is portable across Python versions. Suggested by Peter Funk <[email protected]>.
1 parent 63eb630 commit c71c23e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/lib/libos.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@ \subsection{File Object Creation \label{os-newstreams}}
284284
object, except that when the exit status is zero (termination without
285285
errors), \code{None} is returned.
286286
Availability: \UNIX{}, Windows.
287+
288+
\versionchanged[This function worked unreliably under Windows in
289+
earlier versions of Python. This was due to the use of the
290+
\cfunction{_popen()} function from the libraries provided with
291+
Windows. Newer versions of Python do not use the broken
292+
implementation from the Windows libraries]{2.0}
287293
\end{funcdesc}
288294

289295
\begin{funcdesc}{tmpfile}{}

0 commit comments

Comments
 (0)