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
f0edd1b8
Kaydet (Commit)
f0edd1b8
authored
Mar 16, 2011
tarafından
Ronald Oussoren
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge with 3.1
üst
2e8a07c2
0b8753d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
__init__.py
Lib/multiprocessing/__init__.py
+4
-1
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+4
-0
No files found.
Lib/multiprocessing/__init__.py
Dosyayı görüntüle @
f0edd1b8
...
...
@@ -115,8 +115,11 @@ def cpu_count():
except
(
ValueError
,
KeyError
):
num
=
0
elif
'bsd'
in
sys
.
platform
or
sys
.
platform
==
'darwin'
:
comm
=
'/sbin/sysctl -n hw.ncpu'
if
sys
.
platform
==
'darwin'
:
comm
=
'/usr'
+
comm
try
:
with
os
.
popen
(
'sysctl -n hw.ncpu'
)
as
p
:
with
os
.
popen
(
comm
)
as
p
:
num
=
int
(
p
.
read
())
except
ValueError
:
num
=
0
...
...
Misc/ACKS
Dosyayı görüntüle @
f0edd1b8
...
...
@@ -624,6 +624,7 @@ Tim Northover
Joe Norton
Neal Norwitz
Michal Nowikowski
Steffen Daode Nurpmeso
Nigel O'Brian
Kevin O'Connor
Tim O'Malley
...
...
Misc/NEWS
Dosyayı görüntüle @
f0edd1b8
...
...
@@ -43,6 +43,10 @@ Library
-
Issue
#
11133
:
fix
two
cases
where
inspect
.
getattr_static
can
trigger
code
execution
.
Patch
by
Daniel
Urban
.
-
Issue
#
11569
:
use
absolute
path
to
the
sysctl
command
in
multiprocessing
to
ensure
that
it
will
be
found
regardless
of
the
shell
PATH
.
This
ensures
that
multiprocessing
.
cpu_count
works
on
default
installs
of
MacOSX
.
-
Issue
#
11501
:
disutils
.
archive_utils
.
make_zipfile
no
longer
fails
if
zlib
is
not
installed
.
Instead
,
the
zipfile
.
ZIP_STORED
compression
is
used
to
create
the
ZipFile
.
Patch
by
Natalia
B
.
Bidart
.
...
...
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