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
02c58f86
Kaydet (Commit)
02c58f86
authored
Eki 08, 2003
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF patch #820195 by Wojtek Walczak (gminick at users.sourceforge.net):
make obj.__contains__() returns True/False instead of 1/0.
üst
95a97d59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
typeobject.c
Objects/typeobject.c
+4
-2
No files found.
Misc/ACKS
Dosyayı görüntüle @
02c58f86
...
...
@@ -572,6 +572,7 @@ Frank Visser
Charles Waldman
Richard Walker
Larry Wall
Wojtek Walczak
Greg Ward
Barry Warsaw
Steve Waterbury
...
...
Misc/NEWS
Dosyayı görüntüle @
02c58f86
...
...
@@ -30,6 +30,9 @@ Core and builtins
-
zip
()
with
no
arguments
now
returns
an
empty
list
instead
of
raising
a
TypeError
exception
.
-
obj
.
__contains__
()
now
returns
True
/
False
instead
of
1
/
0.
SF
patch
820195.
Extension
modules
-----------------
...
...
Objects/typeobject.c
Dosyayı görüntüle @
02c58f86
...
...
@@ -3569,14 +3569,16 @@ wrap_objobjproc(PyObject *self, PyObject *args, void *wrapped)
{
objobjproc
func
=
(
objobjproc
)
wrapped
;
int
res
;
PyObject
*
value
;
PyObject
*
value
,
*
ret
;
if
(
!
PyArg_ParseTuple
(
args
,
"O"
,
&
value
))
return
NULL
;
res
=
(
*
func
)(
self
,
value
);
if
(
res
==
-
1
&&
PyErr_Occurred
())
return
NULL
;
return
PyInt_FromLong
((
long
)
res
);
ret
=
PyObject_IsTrue
(
PyInt_FromLong
((
long
)
res
))
?
Py_True
:
Py_False
;
Py_INCREF
(
ret
);
return
ret
;
}
static
PyObject
*
...
...
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