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
a40675a1
Kaydet (Commit)
a40675a1
authored
Mar 23, 2014
tarafından
Richard Oudkerk
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20990: Fix issues found by pyflakes for multiprocessing.
üst
75c5ab49
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
spawn.py
Lib/multiprocessing/spawn.py
+10
-2
synchronize.py
Lib/multiprocessing/synchronize.py
+4
-3
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/multiprocessing/spawn.py
Dosyayı görüntüle @
a40675a1
...
...
@@ -64,7 +64,14 @@ def freeze_support():
Run code for process object if this in not the main process
'''
if
is_forking
(
sys
.
argv
):
main
()
kwds
=
{}
for
arg
in
sys
.
argv
[
2
:]:
name
,
value
=
arg
.
split
(
'='
)
if
value
==
'None'
:
kwds
[
name
]
=
None
else
:
kwds
[
name
]
=
int
(
value
)
spawn_main
(
**
kwds
)
sys
.
exit
()
...
...
@@ -73,7 +80,8 @@ def get_command_line(**kwds):
Returns prefix of command line used for spawning a child process
'''
if
getattr
(
sys
,
'frozen'
,
False
):
return
[
sys
.
executable
,
'--multiprocessing-fork'
]
tmp
=
' '
.
join
(
'
%
s=
%
r'
%
item
for
item
in
kwds
.
items
())
return
[
sys
.
executable
,
'--multiprocessing-fork'
]
+
tmp
else
:
prog
=
'from multiprocessing.spawn import spawn_main; spawn_main(
%
s)'
prog
%=
', '
.
join
(
'
%
s=
%
r'
%
item
for
item
in
kwds
.
items
())
...
...
Lib/multiprocessing/synchronize.py
Dosyayı görüntüle @
a40675a1
...
...
@@ -49,9 +49,10 @@ class SemLock(object):
_rand
=
tempfile
.
_RandomNameSequence
()
def
__init__
(
self
,
kind
,
value
,
maxvalue
,
*
,
ctx
):
ctx
=
ctx
or
get_context
()
ctx
=
ctx
.
get_context
()
unlink_now
=
sys
.
platform
==
'win32'
or
ctx
.
_name
==
'fork'
if
ctx
is
None
:
ctx
=
context
.
_default_context
.
get_context
()
name
=
ctx
.
get_start_method
()
unlink_now
=
sys
.
platform
==
'win32'
or
name
==
'fork'
for
i
in
range
(
100
):
try
:
sl
=
self
.
_semlock
=
_multiprocessing
.
SemLock
(
...
...
Misc/NEWS
Dosyayı görüntüle @
a40675a1
...
...
@@ -21,6 +21,8 @@ Core and Builtins
Library
-------
- Issue #20990: Fix issues found by pyflakes for multiprocessing.
- Issue #21015: SSL contexts will now automatically select an elliptic
curve for ECDH key exchange on OpenSSL 1.0.2 and later, and otherwise
default to "prime256v1".
...
...
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