Python 3.1. callable() is again supported in Python 3.2.
def _run_unittest(*args):
with check_py3k_warnings(
+ (".+ not supported in 3.1", DeprecationWarning),
(".+ not supported in 3.x", DeprecationWarning),
(".+ is renamed to imp.reload", DeprecationWarning),
("classic int division", DeprecationWarning)):
Core and Builtins
-----------------
+- Issue #12501: Adjust callable() warning: callable() is only not supported in
+ Python 3.1. callable() is again supported in Python 3.2.
+
- Issue #9611, #9015: FileIO.read(), FileIO.readinto(), FileIO.write() and
os.write() clamp the length to INT_MAX on Windows.
static PyObject *
builtin_callable(PyObject *self, PyObject *v)
{
- if (PyErr_WarnPy3k("callable() not supported in 3.x; "
+ 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));