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
cee93c3b
Kaydet (Commit)
cee93c3b
authored
Kas 05, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #28485: Merge single-threading fix from 3.5 into 3.6
üst
7d76c906
88281cee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
compileall.py
Lib/compileall.py
+3
-3
NEWS
Misc/NEWS
+4
-0
No files found.
Lib/compileall.py
Dosyayı görüntüle @
cee93c3b
...
...
@@ -68,13 +68,13 @@ def compile_dir(dir, maxlevels=10, ddir=None, force=False, rx=None,
optimize: optimization level or -1 for level of the interpreter
workers: maximum number of parallel workers
"""
if
workers
is
not
None
and
workers
<
0
:
raise
ValueError
(
'workers must be greater or equal to 0'
)
files
=
_walk_dir
(
dir
,
quiet
=
quiet
,
maxlevels
=
maxlevels
,
ddir
=
ddir
)
success
=
True
if
workers
is
not
None
and
workers
!=
1
and
ProcessPoolExecutor
is
not
None
:
if
workers
<
0
:
raise
ValueError
(
'workers must be greater or equal to 0'
)
workers
=
workers
or
None
with
ProcessPoolExecutor
(
max_workers
=
workers
)
as
executor
:
results
=
executor
.
map
(
partial
(
compile_file
,
...
...
Misc/NEWS
Dosyayı görüntüle @
cee93c3b
...
...
@@ -573,6 +573,10 @@ Core and Builtins
Library
-------
-
Issue
#
28485
:
Always
raise
ValueError
for
negative
compileall
.
compile_dir
(
workers
=...)
parameter
,
even
when
multithreading
is
unavailable
.
-
Issue
#
28037
:
Use
sqlite3_get_autocommit
()
instead
of
setting
Connection
->
inTransaction
manually
.
...
...
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