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
df71dcbe
Kaydet (Commit)
df71dcbe
authored
Haz 27, 2014
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't overwrite the error from PyObject_GetAttrString (closes #4346)
üst
e75f527b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
NEWS
Misc/NEWS
+3
-0
abstract.c
Objects/abstract.c
+4
-8
No files found.
Misc/NEWS
Dosyayı görüntüle @
df71dcbe
...
@@ -10,6 +10,9 @@ What's New in Python 2.7.8?
...
@@ -10,6 +10,9 @@ What's New in Python 2.7.8?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #4346: In PyObject_CallMethod and PyObject_CallMethodObjArgs, don'
t
overwrite
the
error
set
in
PyObject_GetAttr
.
-
Issue
#
21831
:
Avoid
integer
overflow
when
large
sizes
and
offsets
are
given
to
-
Issue
#
21831
:
Avoid
integer
overflow
when
large
sizes
and
offsets
are
given
to
the
buffer
type
.
the
buffer
type
.
...
...
Objects/abstract.c
Dosyayı görüntüle @
df71dcbe
...
@@ -2617,10 +2617,8 @@ PyObject_CallMethod(PyObject *o, char *name, char *format, ...)
...
@@ -2617,10 +2617,8 @@ PyObject_CallMethod(PyObject *o, char *name, char *format, ...)
return
null_error
();
return
null_error
();
func
=
PyObject_GetAttrString
(
o
,
name
);
func
=
PyObject_GetAttrString
(
o
,
name
);
if
(
func
==
NULL
)
{
if
(
func
==
NULL
)
PyErr_SetString
(
PyExc_AttributeError
,
name
);
return
NULL
;
return
0
;
}
if
(
!
PyCallable_Check
(
func
))
{
if
(
!
PyCallable_Check
(
func
))
{
type_error
(
"attribute of type '%.200s' is not callable"
,
func
);
type_error
(
"attribute of type '%.200s' is not callable"
,
func
);
...
@@ -2656,10 +2654,8 @@ _PyObject_CallMethod_SizeT(PyObject *o, char *name, char *format, ...)
...
@@ -2656,10 +2654,8 @@ _PyObject_CallMethod_SizeT(PyObject *o, char *name, char *format, ...)
return
null_error
();
return
null_error
();
func
=
PyObject_GetAttrString
(
o
,
name
);
func
=
PyObject_GetAttrString
(
o
,
name
);
if
(
func
==
NULL
)
{
if
(
func
==
NULL
)
PyErr_SetString
(
PyExc_AttributeError
,
name
);
return
NULL
;
return
0
;
}
if
(
!
PyCallable_Check
(
func
))
{
if
(
!
PyCallable_Check
(
func
))
{
type_error
(
"attribute of type '%.200s' is not callable"
,
func
);
type_error
(
"attribute of type '%.200s' is not callable"
,
func
);
...
...
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