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

Skip to content

Commit 0b9bc20

Browse files
committed
Add the appropriate availability annotations for the popen*() family of
functions -- these are not available on traditional Mac OS platforms. Corrected the version annotations for the spawn*() functions and related constants; these were added in Python 1.6, not 1.5.2.
1 parent 2d4e077 commit 0b9bc20

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Doc/lib/libos.tex

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,18 +317,21 @@ \subsection{File Object Creation \label{os-newstreams}}
317317
\begin{funcdesc}{popen2}{cmd\optional{, mode\optional{, bufsize}}}
318318
Executes \var{cmd} as a sub-process. Returns the file objects
319319
\code{(\var{child_stdin}, \var{child_stdout})}.
320+
Availability: \UNIX{}, Windows.
320321
\versionadded{2.0}
321322
\end{funcdesc}
322323

323324
\begin{funcdesc}{popen3}{cmd\optional{, mode\optional{, bufsize}}}
324325
Executes \var{cmd} as a sub-process. Returns the file objects
325326
\code{(\var{child_stdin}, \var{child_stdout}, \var{child_stderr})}.
327+
Availability: \UNIX{}, Windows.
326328
\versionadded{2.0}
327329
\end{funcdesc}
328330

329331
\begin{funcdesc}{popen4}{cmd\optional{, mode\optional{, bufsize}}}
330332
Executes \var{cmd} as a sub-process. Returns the file objects
331333
\code{(\var{child_stdin}, \var{child_stdout_and_stderr})}.
334+
Availability: \UNIX{}, Windows.
332335
\versionadded{2.0}
333336
\end{funcdesc}
334337

@@ -944,7 +947,7 @@ \subsection{Process Management \label{os-process}}
944947
information; the constants are exposed to the Python programmer as
945948
listed below.
946949
Availability: \UNIX{}, Windows.
947-
\versionadded{1.5.2}
950+
\versionadded{1.6}
948951
\end{funcdesc}
949952

950953
\begin{funcdesc}{spawnve}{mode, path, args, env}
@@ -955,7 +958,7 @@ \subsection{Process Management \label{os-process}}
955958
\Cpp{} Runtime Library documentation for further information; the
956959
constants are exposed to the Python programmer as listed below.
957960
Availability: \UNIX{}, Windows.
958-
\versionadded{1.5.2}
961+
\versionadded{1.6}
959962
\end{funcdesc}
960963

961964
\begin{datadesc}{P_WAIT}
@@ -964,7 +967,7 @@ \subsection{Process Management \label{os-process}}
964967
Possible values for the \var{mode} parameter to \function{spawnv()}
965968
and \function{spawnve()}.
966969
Availability: \UNIX{}, Windows.
967-
\versionadded{1.5.2}
970+
\versionadded{1.6}
968971
\end{datadesc}
969972

970973
\begin{datadesc}{P_OVERLAY}
@@ -973,7 +976,7 @@ \subsection{Process Management \label{os-process}}
973976
and \function{spawnve()}. These are less portable than those listed
974977
above.
975978
Availability: Windows.
976-
\versionadded{1.5.2}
979+
\versionadded{1.6}
977980
\end{datadesc}
978981

979982
\begin{funcdesc}{startfile}{path}

0 commit comments

Comments
 (0)