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
a5ae1f0c
Kaydet (Commit)
a5ae1f0c
authored
Kas 06, 2011
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove py3k warning for callable
üst
819d8d44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
NEWS
Misc/NEWS
+2
-0
bltinmodule.c
Python/bltinmodule.c
+0
-3
No files found.
Misc/NEWS
Dosyayı görüntüle @
a5ae1f0c
...
@@ -9,6 +9,8 @@ What's New in Python 2.7.3?
...
@@ -9,6 +9,8 @@ What's New in Python 2.7.3?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Remove Py3k warning for callable.
- Issue #13340: Accept None as start and stop parameters for
- Issue #13340: Accept None as start and stop parameters for
list.index() and tuple.index().
list.index() and tuple.index().
...
...
Python/bltinmodule.c
Dosyayı görüntüle @
a5ae1f0c
...
@@ -224,9 +224,6 @@ Return the binary representation of an integer or long integer.");
...
@@ -224,9 +224,6 @@ Return the binary representation of an integer or long integer.");
static
PyObject
*
static
PyObject
*
builtin_callable
(
PyObject
*
self
,
PyObject
*
v
)
builtin_callable
(
PyObject
*
self
,
PyObject
*
v
)
{
{
if
(
PyErr_WarnPy3k
(
"callable() not supported in 3.1; "
"use isinstance(x, collections.Callable)"
,
1
)
<
0
)
return
NULL
;
return
PyBool_FromLong
((
long
)
PyCallable_Check
(
v
));
return
PyBool_FromLong
((
long
)
PyCallable_Check
(
v
));
}
}
...
...
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