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));
}
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)
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,
{
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)
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);
}