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
d9a8e965
Kaydet (Commit)
d9a8e965
authored
Eyl 19, 2000
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Only supply popen2, popen3 when fork exists.
(This avoids defining non-working versions of these on the Mac.)
üst
9e8181b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
os.py
Lib/os.py
+15
-13
No files found.
Lib/os.py
Dosyayı görüntüle @
d9a8e965
...
...
@@ -454,16 +454,18 @@ otherwise return -SIG, where SIG is the signal that killed it. """
return
spawnvpe
(
mode
,
file
,
args
[:
-
1
],
env
)
if
not
_exists
(
"popen2"
):
def
popen2
(
cmd
,
mode
=
"t"
,
bufsize
=-
1
):
assert
mode
[:
1
]
in
(
"b"
,
"t"
)
import
popen2
stdout
,
stdin
=
popen2
.
popen2
(
cmd
,
bufsize
)
return
stdin
,
stdout
if
not
_exists
(
"popen3"
):
def
popen3
(
cmd
,
mode
=
"t"
,
bufsize
=-
1
):
assert
mode
[:
1
]
in
(
"b"
,
"t"
)
import
popen2
stdout
,
stdin
,
stderr
=
popen2
.
popen3
(
cmd
,
bufsize
)
return
stdin
,
stdout
,
stderr
# Supply popen2 etc. (for Unix)
if
_exists
(
"fork"
):
if
not
_exists
(
"popen2"
):
def
popen2
(
cmd
,
mode
=
"t"
,
bufsize
=-
1
):
assert
mode
[:
1
]
in
(
"b"
,
"t"
)
import
popen2
stdout
,
stdin
=
popen2
.
popen2
(
cmd
,
bufsize
)
return
stdin
,
stdout
if
not
_exists
(
"popen3"
):
def
popen3
(
cmd
,
mode
=
"t"
,
bufsize
=-
1
):
assert
mode
[:
1
]
in
(
"b"
,
"t"
)
import
popen2
stdout
,
stdin
,
stderr
=
popen2
.
popen3
(
cmd
,
bufsize
)
return
stdin
,
stdout
,
stderr
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