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
bde0508d
Kaydet (Commit)
bde0508d
authored
Kas 15, 2009
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
r76292 commit accidentally committed some extra code; remove it
üst
d550c9a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
rangeobject.c
Objects/rangeobject.c
+0
-27
No files found.
Objects/rangeobject.c
Dosyayı görüntüle @
bde0508d
...
...
@@ -664,24 +664,6 @@ range_iter(PyObject *seq)
PyErr_Clear
();
goto
long_range
;
}
/* round lstop to the next value congruent to lstart modulo lstep;
if the result would overflow, use PyLong version. */
if
(
lstep
>
0
&&
lstart
<
lstop
)
{
long
extra
=
(
lstep
-
1
)
-
(
long
)((
lstop
-
1UL
-
lstart
)
%
lstep
);
if
((
unsigned
long
)
extra
>
(
unsigned
long
)
LONG_MAX
-
lstop
)
goto
long_range
;
lstop
+=
extra
;
}
else
if
(
lstep
<
0
&&
lstart
>
lstop
)
{
long
extra
=
(
lstep
+
1
)
+
(
long
)((
lstart
-
1UL
-
lstop
)
%
(
0UL
-
lstep
));
if
((
unsigned
long
)
lstop
-
LONG_MIN
<
0UL
-
extra
)
goto
long_range
;
lstop
+=
extra
;
}
else
lstop
=
lstart
;
int_it
=
int_range_iter
(
lstart
,
lstop
,
lstep
);
if
(
int_it
==
NULL
&&
PyErr_ExceptionMatches
(
PyExc_OverflowError
))
{
PyErr_Clear
();
...
...
@@ -778,15 +760,6 @@ range_reverse(PyObject *seq)
goto
long_range
;
}
/* set lstop equal to the last element of the range, or to lstart if the
range is empty. */
if
(
lstep
>
0
&&
lstart
<
lstop
)
lstop
+=
-
1
-
(
long
)((
lstop
-
1UL
-
lstart
)
%
lstep
);
else
if
(
lstep
<
0
&&
lstart
>
lstop
)
lstop
+=
1
+
(
long
)((
lstart
-
1UL
-
lstop
)
%
(
0UL
-
lstep
));
else
lstop
=
lstart
;
ulen
=
get_len_of_range
(
lstart
,
lstop
,
lstep
);
if
(
ulen
>
(
unsigned
long
)
LONG_MAX
)
goto
long_range
;
...
...
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