@@ -357,10 +357,6 @@ \subsection{File Object Creation \label{os-newstreams}}
357
357
errors), \code {None} is returned.
358
358
Availability: Macintosh, \UNIX , Windows.
359
359
360
- The \module {subprocess} module provides more powerful facilities for
361
- spawning new processes and retrieving their results; using that module
362
- is preferable to using this function.
363
-
364
360
\versionchanged [This function worked unreliably under Windows in
365
361
earlier versions of Python. This was due to the use of the
366
362
\cfunction {_popen()} function from the libraries provided with
@@ -375,13 +371,8 @@ \subsection{File Object Creation \label{os-newstreams}}
375
371
Availability: Macintosh, \UNIX , Windows.
376
372
\end {funcdesc }
377
373
378
- There are a number of different \function {popen*()} functions that
379
- provide slightly different ways to create subprocesses. Note that the
380
- \module {subprocess} module is easier to use and more powerful;
381
- consider using that module before writing code using the
382
- lower-level \function {popen*()} functions.
383
374
384
- For each of the \function {popen* ()} variants, if \var {bufsize} is
375
+ For each of the following \function {popen()} variants, if \var {bufsize} is
385
376
specified, it specifies the buffer size for the I/O pipes.
386
377
\var {mode}, if provided, should be the string \code {'b'} or
387
378
\code {'t'}; on Windows this is needed to determine whether the file
@@ -1513,13 +1504,7 @@ \subsection{Process Management \label{os-process}}
1513
1504
\funcline {spawnve}{mode, path, args, env}
1514
1505
\funcline {spawnvp}{mode, file, args}
1515
1506
\funcline {spawnvpe}{mode, file, args, env}
1516
- Execute the program \var {path} in a new process.
1517
-
1518
- (Note that the \module {subprocess} module provides more powerful
1519
- facilities for spawning new processes and retrieving their results;
1520
- using that module is preferable to using these functions.)
1521
-
1522
- If \var {mode} is
1507
+ Execute the program \var {path} in a new process. If \var {mode} is
1523
1508
\constant {P_NOWAIT}, this function returns the process ID of the new
1524
1509
process; if \var {mode} is \constant {P_WAIT}, returns the process's
1525
1510
exit code if it exits normally, or \code {-\var {signal}}, where
@@ -1647,10 +1632,6 @@ \subsection{Process Management \label{os-process}}
1647
1632
a non-native shell, consult your shell documentation.
1648
1633
1649
1634
Availability: Macintosh, \UNIX , Windows.
1650
-
1651
- The \module {subprocess} module provides more powerful facilities for
1652
- spawning new processes and retrieving their results; using that module
1653
- is preferable to using this function.
1654
1635
\end {funcdesc }
1655
1636
1656
1637
\begin {funcdesc }{times}{}
0 commit comments