summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.0.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-10-03 15:13:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-10-03 15:13:15 (GMT)
commit36e0d0efd83ca1636be6d05ab1bed7d73fd84e83 (patch)
tree3a14a3dea51a19a1dfbe5aa76d4a59fa08ba686e /Doc/whatsnew/3.0.rst
parent5850389a10f5d3de0704badef43fe8072423b273 (diff)
downloadcpython-36e0d0efd83ca1636be6d05ab1bed7d73fd84e83.zip
cpython-36e0d0efd83ca1636be6d05ab1bed7d73fd84e83.tar.gz
cpython-36e0d0efd83ca1636be6d05ab1bed7d73fd84e83.tar.bz2
isinstance(f, collections.Callable) is more correct
Diffstat (limited to 'Doc/whatsnew/3.0.rst')
-rw-r--r--Doc/whatsnew/3.0.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst
index 9434573..b79ce7f 100644
--- a/Doc/whatsnew/3.0.rst
+++ b/Doc/whatsnew/3.0.rst
@@ -804,8 +804,8 @@ Builtins
``f(*args)``.
* Removed :func:`callable`. Instead of ``callable(f)`` you can use
- ``hasattr(f, '__call__')``. The :func:`operator.isCallable` function
- is also gone.
+ ``isinstance(f, collections.Callable)``. The :func:`operator.isCallable`
+ function is also gone.
* Removed :func:`coerce`. This function no longer serves a purpose
now that classic classes are gone.