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
e105f980
Kaydet (Commit)
e105f980
authored
Ock 23, 2008
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix two crashers (borrowed_ref_[34].py from the trunk).
üst
2529aa98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
bltinmodule.c
Python/bltinmodule.c
+6
-1
ceval.c
Python/ceval.c
+5
-1
No files found.
Python/bltinmodule.c
Dosyayı görüntüle @
e105f980
...
@@ -1218,11 +1218,14 @@ min_max(PyObject *args, PyObject *kwds, int op)
...
@@ -1218,11 +1218,14 @@ min_max(PyObject *args, PyObject *kwds, int op)
"%s() got an unexpected keyword argument"
,
name
);
"%s() got an unexpected keyword argument"
,
name
);
return
NULL
;
return
NULL
;
}
}
Py_INCREF
(
keyfunc
);
}
}
it
=
PyObject_GetIter
(
v
);
it
=
PyObject_GetIter
(
v
);
if
(
it
==
NULL
)
if
(
it
==
NULL
)
{
Py_XDECREF
(
keyfunc
);
return
NULL
;
return
NULL
;
}
maxitem
=
NULL
;
/* the result */
maxitem
=
NULL
;
/* the result */
maxval
=
NULL
;
/* the value associated with the result */
maxval
=
NULL
;
/* the value associated with the result */
...
@@ -1271,6 +1274,7 @@ min_max(PyObject *args, PyObject *kwds, int op)
...
@@ -1271,6 +1274,7 @@ min_max(PyObject *args, PyObject *kwds, int op)
else
else
Py_DECREF
(
maxval
);
Py_DECREF
(
maxval
);
Py_DECREF
(
it
);
Py_DECREF
(
it
);
Py_XDECREF
(
keyfunc
);
return
maxitem
;
return
maxitem
;
Fail_it_item_and_val:
Fail_it_item_and_val:
...
@@ -1281,6 +1285,7 @@ Fail_it:
...
@@ -1281,6 +1285,7 @@ Fail_it:
Py_XDECREF
(
maxval
);
Py_XDECREF
(
maxval
);
Py_XDECREF
(
maxitem
);
Py_XDECREF
(
maxitem
);
Py_DECREF
(
it
);
Py_DECREF
(
it
);
Py_XDECREF
(
keyfunc
);
return
NULL
;
return
NULL
;
}
}
...
...
Python/ceval.c
Dosyayı görüntüle @
e105f980
...
@@ -2036,6 +2036,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
...
@@ -2036,6 +2036,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
"__import__ not found"
);
"__import__ not found"
);
break
;
break
;
}
}
Py_INCREF
(
x
);
v
=
POP
();
v
=
POP
();
u
=
TOP
();
u
=
TOP
();
if
(
PyInt_AsLong
(
u
)
!=
-
1
||
PyErr_Occurred
())
if
(
PyInt_AsLong
(
u
)
!=
-
1
||
PyErr_Occurred
())
...
@@ -2057,11 +2058,14 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
...
@@ -2057,11 +2058,14 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
Py_DECREF
(
u
);
Py_DECREF
(
u
);
if
(
w
==
NULL
)
{
if
(
w
==
NULL
)
{
u
=
POP
();
u
=
POP
();
Py_DECREF
(
x
);
x
=
NULL
;
x
=
NULL
;
break
;
break
;
}
}
READ_TIMESTAMP
(
intr0
);
READ_TIMESTAMP
(
intr0
);
x
=
PyEval_CallObject
(
x
,
w
);
v
=
x
;
x
=
PyEval_CallObject
(
v
,
w
);
Py_DECREF
(
v
);
READ_TIMESTAMP
(
intr1
);
READ_TIMESTAMP
(
intr1
);
Py_DECREF
(
w
);
Py_DECREF
(
w
);
SET_TOP
(
x
);
SET_TOP
(
x
);
...
...
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