diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-09-27 16:32:56 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-09-27 16:32:56 (GMT) |
commit | 5770847da67cffd76906d10ece2214fb31e0ff61 (patch) | |
tree | 743fc0f0ab2a4712de1d3336afe793449a9810e2 /Doc/whatsnew/3.0.rst | |
parent | 75636af5db1f59e7ad062a467e6917253b3b9175 (diff) | |
download | cpython-5770847da67cffd76906d10ece2214fb31e0ff61.zip cpython-5770847da67cffd76906d10ece2214fb31e0ff61.tar.gz cpython-5770847da67cffd76906d10ece2214fb31e0ff61.tar.bz2 |
use more correct callable replacement
Diffstat (limited to 'Doc/whatsnew/3.0.rst')
-rw-r--r-- | Doc/whatsnew/3.0.rst | 4 |
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. |