summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-09-27 16:32:56 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-09-27 16:32:56 (GMT)
commit5770847da67cffd76906d10ece2214fb31e0ff61 (patch)
tree743fc0f0ab2a4712de1d3336afe793449a9810e2
parent75636af5db1f59e7ad062a467e6917253b3b9175 (diff)
downloadcpython-5770847da67cffd76906d10ece2214fb31e0ff61.zip
cpython-5770847da67cffd76906d10ece2214fb31e0ff61.tar.gz
cpython-5770847da67cffd76906d10ece2214fb31e0ff61.tar.bz2
use more correct callable replacement
-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..2ba635a 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.
+ ``hasattr(type(f), '__call__')``. The :func:`operator.isCallable` function is
+ also gone.
* Removed :func:`coerce`. This function no longer serves a purpose
now that classic classes are gone.