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
49c15d4a
Kaydet (Commit)
49c15d4a
authored
Haz 24, 2012
tarafından
Larry Hastings
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #14815: Use Py_ssize_t instead of long for the object hash, to
preserve all 64 bits of hash on Win64.
üst
1bc276d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
NEWS
Misc/NEWS
+3
-0
_randommodule.c
Modules/_randommodule.c
+2
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
49c15d4a
...
...
@@ -10,6 +10,9 @@ What's New in Python 3.3.0 Beta 1?
Core and Builtins
-----------------
- Issue #14815: Use Py_ssize_t instead of long for the object hash, to
preserve all 64 bits of hash on Win64.
- Issue #12268: File readline, readlines and read() or readall() methods
no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR
...
...
Modules/_randommodule.c
Dosyayı görüntüle @
49c15d4a
...
...
@@ -234,10 +234,10 @@ random_seed(RandomObject *self, PyObject *args)
if
(
PyLong_Check
(
arg
))
n
=
PyNumber_Absolute
(
arg
);
else
{
long
hash
=
PyObject_Hash
(
arg
);
Py_ssize_t
hash
=
PyObject_Hash
(
arg
);
if
(
hash
==
-
1
)
goto
Done
;
n
=
PyLong_From
UnsignedLong
((
unsigned
long
)
hash
);
n
=
PyLong_From
Ssize_t
(
hash
);
}
if
(
n
==
NULL
)
goto
Done
;
...
...
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