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
3bc37f23
Kaydet (Commit)
3bc37f23
authored
May 23, 2012
tarafından
Petri Lehtinen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#14862: Add missing names to os.__all__
üst
e02ba103
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
os.py
Lib/os.py
+9
-2
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/os.py
Dosyayı görüntüle @
3bc37f23
...
...
@@ -30,8 +30,9 @@ _names = sys.builtin_module_names
# Note: more names are added to __all__ later.
__all__
=
[
"altsep"
,
"curdir"
,
"pardir"
,
"sep"
,
"pathsep"
,
"linesep"
,
"defpath"
,
"name"
,
"path"
,
"devnull"
,
"SEEK_SET"
,
"SEEK_CUR"
,
"SEEK_END"
]
"defpath"
,
"name"
,
"path"
,
"devnull"
,
"SEEK_SET"
,
"SEEK_CUR"
,
"SEEK_END"
,
"fsencode"
,
"fsdecode"
,
"get_exec_path"
,
"fdopen"
,
"popen"
,
"extsep"
]
def
_exists
(
name
):
return
name
in
globals
()
...
...
@@ -50,6 +51,7 @@ if 'posix' in _names:
from
posix
import
*
try
:
from
posix
import
_exit
__all__
.
append
(
'_exit'
)
except
ImportError
:
pass
import
posixpath
as
path
...
...
@@ -64,6 +66,7 @@ elif 'nt' in _names:
from
nt
import
*
try
:
from
nt
import
_exit
__all__
.
append
(
'_exit'
)
except
ImportError
:
pass
import
ntpath
as
path
...
...
@@ -78,6 +81,7 @@ elif 'os2' in _names:
from
os2
import
*
try
:
from
os2
import
_exit
__all__
.
append
(
'_exit'
)
except
ImportError
:
pass
if
sys
.
version
.
find
(
'EMX GCC'
)
==
-
1
:
...
...
@@ -96,6 +100,7 @@ elif 'ce' in _names:
from
ce
import
*
try
:
from
ce
import
_exit
__all__
.
append
(
'_exit'
)
except
ImportError
:
pass
# We can use the standard Windows path.
...
...
@@ -700,6 +705,8 @@ if _exists("fork") and not _exists("spawnv") and _exists("execv"):
P_WAIT
=
0
P_NOWAIT
=
P_NOWAITO
=
1
__all__
.
extend
([
"P_WAIT"
,
"P_NOWAIT"
,
"P_NOWAITO"
])
# XXX Should we support P_DETACH? I suppose it could fork()**2
# and close the std I/O streams. Also, P_OVERLAY is the same
# as execv*()?
...
...
Misc/NEWS
Dosyayı görüntüle @
3bc37f23
...
...
@@ -42,6 +42,8 @@ Core and Builtins
Library
-------
- Issue #14862: Add missing names to os.__all__
- Issue #14875: Use float('
inf
') instead of float('
1e66666
') in the json module.
- Issue #13585: Added contextlib.ExitStack
...
...
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