commit | 90ed611f6d60caeb59b1d9518f9f76a19436c8a5 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Nov 17 21:24:54 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Nov 17 21:24:54 2009 +0000 |
tree | ff15099661bc22f5b5692cacbedde2d22c70cd7c | |
parent | fab8be2f99889a21c0651c7e7ac0d7ffa91a872c [diff] [blame] |
a better callable replacement
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index c060770..fcae58a 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -224,7 +224,7 @@ builtin_callable(PyObject *self, PyObject *v) { if (PyErr_WarnPy3k("callable() not supported in 3.x; " - "use hasattr(o, '__call__')", 1) < 0) + "use isinstance(x, collections.Callable)", 1) < 0) return NULL; return PyBool_FromLong((long)PyCallable_Check(v)); }