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
cb4d7ce7
Kaydet (Commit)
cb4d7ce7
authored
Haz 14, 2002
tarafından
Michael W. Hudson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Now FOR_LOOP is gone, loop_subscript can go too.
make -s rules :-)
üst
2aabac82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
ceval.c
Python/ceval.c
+0
-19
No files found.
Python/ceval.c
Dosyayı görüntüle @
cb4d7ce7
...
@@ -51,7 +51,6 @@ static int call_trace(Py_tracefunc, PyObject *, PyFrameObject *,
...
@@ -51,7 +51,6 @@ static int call_trace(Py_tracefunc, PyObject *, PyFrameObject *,
static
void
call_trace_protected
(
Py_tracefunc
,
PyObject
*
,
static
void
call_trace_protected
(
Py_tracefunc
,
PyObject
*
,
PyFrameObject
*
,
int
);
PyFrameObject
*
,
int
);
static
void
call_exc_trace
(
Py_tracefunc
,
PyObject
*
,
PyFrameObject
*
);
static
void
call_exc_trace
(
Py_tracefunc
,
PyObject
*
,
PyFrameObject
*
);
static
PyObject
*
loop_subscript
(
PyObject
*
,
PyObject
*
);
static
PyObject
*
apply_slice
(
PyObject
*
,
PyObject
*
,
PyObject
*
);
static
PyObject
*
apply_slice
(
PyObject
*
,
PyObject
*
,
PyObject
*
);
static
int
assign_slice
(
PyObject
*
,
PyObject
*
,
static
int
assign_slice
(
PyObject
*
,
PyObject
*
,
PyObject
*
,
PyObject
*
);
PyObject
*
,
PyObject
*
);
...
@@ -3303,24 +3302,6 @@ ext_do_call(PyObject *func, PyObject ***pp_stack, int flags, int na, int nk)
...
@@ -3303,24 +3302,6 @@ ext_do_call(PyObject *func, PyObject ***pp_stack, int flags, int na, int nk)
#define SLICE_ERROR_MSG \
#define SLICE_ERROR_MSG \
"standard sequence type does not support step size other than one"
"standard sequence type does not support step size other than one"
static
PyObject
*
loop_subscript
(
PyObject
*
v
,
PyObject
*
w
)
{
PySequenceMethods
*
sq
=
v
->
ob_type
->
tp_as_sequence
;
int
i
;
if
(
sq
==
NULL
||
sq
->
sq_item
==
NULL
)
{
PyErr_SetString
(
PyExc_TypeError
,
"loop over non-sequence"
);
return
NULL
;
}
i
=
PyInt_AsLong
(
w
);
v
=
(
*
sq
->
sq_item
)(
v
,
i
);
if
(
v
)
return
v
;
if
(
PyErr_ExceptionMatches
(
PyExc_IndexError
))
PyErr_Clear
();
return
NULL
;
}
/* Extract a slice index from a PyInt or PyLong, and store in *pi.
/* Extract a slice index from a PyInt or PyLong, and store in *pi.
Silently reduce values larger than INT_MAX to INT_MAX, and silently
Silently reduce values larger than INT_MAX to INT_MAX, and silently
boost values less than -INT_MAX to 0. Return 0 on error, 1 on success.
boost values less than -INT_MAX to 0. Return 0 on error, 1 on success.
...
...
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