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
df25efea
Kaydet (Commit)
df25efea
authored
May 23, 2007
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a bunch more deprecation warnings for builtins that are going away in 3.0
üst
c792629c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
bltinmodule.c
Python/bltinmodule.c
+24
-0
No files found.
Python/bltinmodule.c
Dosyayı görüntüle @
df25efea
...
...
@@ -191,6 +191,10 @@ Deprecated since release 2.3. Instead, use the extended call syntax:\n\
static
PyObject
*
builtin_callable
(
PyObject
*
self
,
PyObject
*
v
)
{
if
(
Py_Py3kWarningFlag
&&
PyErr_Warn
(
PyExc_DeprecationWarning
,
"callable() not supported in 3.x"
)
<
0
)
return
NULL
;
return
PyBool_FromLong
((
long
)
PyCallable_Check
(
v
));
}
...
...
@@ -389,6 +393,11 @@ builtin_coerce(PyObject *self, PyObject *args)
PyObject
*
v
,
*
w
;
PyObject
*
res
;
if
(
Py_Py3kWarningFlag
&&
PyErr_Warn
(
PyExc_DeprecationWarning
,
"coerce() not supported in 3.x"
)
<
0
)
return
NULL
;
if
(
!
PyArg_UnpackTuple
(
args
,
"coerce"
,
2
,
2
,
&
v
,
&
w
))
return
NULL
;
if
(
PyNumber_Coerce
(
&
v
,
&
w
)
<
0
)
...
...
@@ -631,6 +640,11 @@ builtin_execfile(PyObject *self, PyObject *args)
PyCompilerFlags
cf
;
int
exists
;
if
(
Py_Py3kWarningFlag
&&
PyErr_Warn
(
PyExc_DeprecationWarning
,
"execfile() not supported in 3.x"
)
<
0
)
return
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"s|O!O:execfile"
,
&
filename
,
&
PyDict_Type
,
&
globals
,
...
...
@@ -1800,6 +1814,11 @@ builtin_reduce(PyObject *self, PyObject *args)
{
PyObject
*
seq
,
*
func
,
*
result
=
NULL
,
*
it
;
if
(
Py_Py3kWarningFlag
&&
PyErr_Warn
(
PyExc_DeprecationWarning
,
"reduce() not supported in 3.x"
)
<
0
)
return
NULL
;
if
(
!
PyArg_UnpackTuple
(
args
,
"reduce"
,
2
,
3
,
&
func
,
&
seq
,
&
result
))
return
NULL
;
if
(
result
!=
NULL
)
...
...
@@ -1872,6 +1891,11 @@ sequence is empty.");
static
PyObject
*
builtin_reload
(
PyObject
*
self
,
PyObject
*
v
)
{
if
(
Py_Py3kWarningFlag
&&
PyErr_Warn
(
PyExc_DeprecationWarning
,
"reload() not supported in 3.x"
)
<
0
)
return
NULL
;
return
PyImport_ReloadModule
(
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