use more correct callable replacement

This commit is contained in:
Benjamin Peterson 2009-09-27 16:32:56 +00:00
parent 75636af5db
commit 5770847da6
1 changed files with 2 additions and 2 deletions

View File

@ -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.