From 5770847da67cffd76906d10ece2214fb31e0ff61 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 27 Sep 2009 16:32:56 +0000 Subject: use more correct callable replacement --- Doc/whatsnew/3.0.rst | 4 ++-- 1 file 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. -- cgit v0.12