mirror of
https://github.com/python/cpython.git
synced 2025-11-08 21:52:45 +00:00
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 <pf@artcom-gmbh.de>.
This commit is contained in:
parent
63eb6300a9
commit
c71c23e392
1 changed files with 6 additions and 0 deletions
|
|
@ -284,6 +284,12 @@ available as the return value of the \method{close()} method of the file
|
||||||
object, except that when the exit status is zero (termination without
|
object, except that when the exit status is zero (termination without
|
||||||
errors), \code{None} is returned.
|
errors), \code{None} is returned.
|
||||||
Availability: \UNIX{}, Windows.
|
Availability: \UNIX{}, Windows.
|
||||||
|
|
||||||
|
\versionchanged[This function worked unreliably under Windows in
|
||||||
|
earlier versions of Python. This was due to the use of the
|
||||||
|
\cfunction{_popen()} function from the libraries provided with
|
||||||
|
Windows. Newer versions of Python do not use the broken
|
||||||
|
implementation from the Windows libraries]{2.0}
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{tmpfile}{}
|
\begin{funcdesc}{tmpfile}{}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue