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
06c45e6e
Kaydet (Commit)
06c45e6e
authored
Şub 11, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #25995: os.walk() no longer uses FDs proportional to the tree depth.
üst
94a619d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
os.py
Lib/os.py
+2
-11
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/os.py
Dosyayı görüntüle @
06c45e6e
...
@@ -369,22 +369,13 @@ def walk(top, topdown=True, onerror=None, followlinks=False):
...
@@ -369,22 +369,13 @@ def walk(top, topdown=True, onerror=None, followlinks=False):
# Note that scandir is global in this module due
# Note that scandir is global in this module due
# to earlier import-*.
# to earlier import-*.
scandir_it
=
scandir
(
top
)
scandir_it
=
scandir
(
top
)
entries
=
list
(
scandir
(
top
))
except
OSError
as
error
:
except
OSError
as
error
:
if
onerror
is
not
None
:
if
onerror
is
not
None
:
onerror
(
error
)
onerror
(
error
)
return
return
while
True
:
for
entry
in
entries
:
try
:
try
:
entry
=
next
(
scandir_it
)
except
StopIteration
:
break
except
OSError
as
error
:
if
onerror
is
not
None
:
onerror
(
error
)
return
try
:
try
:
is_dir
=
entry
.
is_dir
()
is_dir
=
entry
.
is_dir
()
except
OSError
:
except
OSError
:
...
...
Misc/NEWS
Dosyayı görüntüle @
06c45e6e
...
@@ -73,6 +73,8 @@ Core and Builtins
...
@@ -73,6 +73,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #25995: os.walk() no longer uses FDs proportional to the tree depth.
- Issue #26117: The os.scandir() iterator now closes file descriptor not only
- Issue #26117: The os.scandir() iterator now closes file descriptor not only
when the iteration is finished, but when it was failed with error.
when the iteration is finished, but when it was failed with error.
...
...
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