Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
6bf8fa66
Kaydet (Commit)
6bf8fa66
authored
May 11, 2007
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate os.popen* and popen2 module in favor of the subprocess module. (forgot the doc)
üst
42dd86b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
libos.tex
Doc/lib/libos.tex
+12
-9
libpopen2.tex
Doc/lib/libpopen2.tex
+1
-0
No files found.
Doc/lib/libos.tex
Dosyayı görüntüle @
6bf8fa66
...
...
@@ -361,9 +361,8 @@ object, except that when the exit status is zero (termination without
errors),
\code
{
None
}
is returned.
Availability: Macintosh,
\UNIX
, Windows.
The
\module
{
subprocess
}
module provides more powerful facilities for
spawning new processes and retrieving their results; using that module
is preferable to using this function.
\deprecated
{
2.6
}{
This function is obsolete. Use the
\module
{
subprocess
}
module.
}
\versionchanged
[This function worked unreliably under Windows in
earlier versions of Python. This was due to the use of the
...
...
@@ -380,10 +379,9 @@ Availability: Macintosh, \UNIX, Windows.
\end{funcdesc}
There are a number of different
\function
{
popen*()
}
functions that
provide slightly different ways to create subprocesses. Note that the
\module
{
subprocess
}
module is easier to use and more powerful;
consider using that module before writing code using the
lower-level
\function
{
popen*()
}
functions.
provide slightly different ways to create subprocesses.
\deprecated
{
2.6
}{
All of the
\function
{
popen*()
}
functions are obsolete.
Use the
\module
{
subprocess
}
module.
}
For each of the
\function
{
popen*()
}
variants, if
\var
{
bufsize
}
is
specified, it specifies the buffer size for the I/O pipes.
...
...
@@ -400,8 +398,7 @@ be passed to the shell (as with \function{os.system()}).
These methods do not make it possible to retrieve the exit status from
the child processes. The only way to control the input and output
streams and also retrieve the return codes is to use the
\class
{
Popen3
}
and
\class
{
Popen4
}
classes from the
\refmodule
{
popen2
}
module; these are only available on
\UNIX
.
\refmodule
{
subprocess
}
module; these are only available on
\UNIX
.
For a discussion of possible deadlock conditions related to the use
of these functions, see ``
\ulink
{
Flow Control
...
...
@@ -411,6 +408,8 @@ Issues}{popen2-flow-control.html}''
\begin{funcdesc}
{
popen2
}{
cmd
\optional
{
, mode
\optional
{
, bufsize
}}}
Executes
\var
{
cmd
}
as a sub-process. Returns the file objects
\code
{
(
\var
{
child
_
stdin
}
,
\var
{
child
_
stdout
}
)
}
.
\deprecated
{
2.6
}{
All of the
\function
{
popen*()
}
functions are obsolete.
Use the
\module
{
subprocess
}
module.
}
Availability: Macintosh,
\UNIX
, Windows.
\versionadded
{
2.0
}
\end{funcdesc}
...
...
@@ -418,6 +417,8 @@ Availability: Macintosh, \UNIX, Windows.
\begin{funcdesc}
{
popen3
}{
cmd
\optional
{
, mode
\optional
{
, bufsize
}}}
Executes
\var
{
cmd
}
as a sub-process. Returns the file objects
\code
{
(
\var
{
child
_
stdin
}
,
\var
{
child
_
stdout
}
,
\var
{
child
_
stderr
}
)
}
.
\deprecated
{
2.6
}{
All of the
\function
{
popen*()
}
functions are obsolete.
Use the
\module
{
subprocess
}
module.
}
Availability: Macintosh,
\UNIX
, Windows.
\versionadded
{
2.0
}
\end{funcdesc}
...
...
@@ -425,6 +426,8 @@ Availability: Macintosh, \UNIX, Windows.
\begin{funcdesc}
{
popen4
}{
cmd
\optional
{
, mode
\optional
{
, bufsize
}}}
Executes
\var
{
cmd
}
as a sub-process. Returns the file objects
\code
{
(
\var
{
child
_
stdin
}
,
\var
{
child
_
stdout
_
and
_
stderr
}
)
}
.
\deprecated
{
2.6
}{
All of the
\function
{
popen*()
}
functions are obsolete.
Use the
\module
{
subprocess
}
module.
}
Availability: Macintosh,
\UNIX
, Windows.
\versionadded
{
2.0
}
\end{funcdesc}
...
...
Doc/lib/libpopen2.tex
Dosyayı görüntüle @
6bf8fa66
...
...
@@ -5,6 +5,7 @@
\modulesynopsis
{
Subprocesses with accessible standard I/O streams.
}
\sectionauthor
{
Drew Csillag
}{
drew
_
csillag@geocities.com
}
\deprecated
{
2.6
}{
This module is obsolete. Use the
\module
{
subprocess
}
module.
}
This module allows you to spawn processes and connect to their
input/output/error pipes and obtain their return codes under
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment