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
a96b0d11
Kaydet (Commit)
a96b0d11
authored
Eyl 24, 2011
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport issue #12973 itertools fix from 3.x.
üst
63c22fac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
NEWS
Misc/NEWS
+3
-3
itertoolsmodule.c
Modules/itertoolsmodule.c
+3
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
a96b0d11
...
...
@@ -15,9 +15,9 @@ Core and Builtins
-
Issue
#
12973
:
Fix
overflow
checks
that
invoked
undefined
behaviour
in
int
.
__pow__
.
These
overflow
checks
were
causing
int
.
__pow__
to
produce
incorrect
results
with
recent
versions
of
Clang
,
as
a
result
of
the
compiler
optimizing
the
check
away
.
Also
fix
similar
overflow
check
in
list_repeat
(
which
caused
test_list
to
fail
with
recent
versions
of
Clang
)
.
compiler
optimizing
the
check
away
.
Also
fix
similar
overflow
check
s
in
list_repeat
(
listobject
.
c
)
and
islice_next
(
itertoolsmodule
.
c
).
These
bugs
caused
test
failures
with
recent
versions
of
Clang
.
-
Issue
#
12266
:
Fix
str
.
capitalize
()
to
correctly
uppercase
/
lowercase
titlecased
and
cased
non
-
letter
characters
.
...
...
Modules/itertoolsmodule.c
Dosyayı görüntüle @
a96b0d11
...
...
@@ -1234,7 +1234,9 @@ islice_next(isliceobject *lz)
return
NULL
;
lz
->
cnt
++
;
oldnext
=
lz
->
next
;
lz
->
next
+=
lz
->
step
;
/* The (size_t) cast below avoids the danger of undefined
behaviour from signed integer overflow. */
lz
->
next
+=
(
size_t
)
lz
->
step
;
if
(
lz
->
next
<
oldnext
||
(
stop
!=
-
1
&&
lz
->
next
>
stop
))
lz
->
next
=
stop
;
return
item
;
...
...
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