Kaydet (Commit) 36e0d0ef authored tarafından Benjamin Peterson's avatar Benjamin Peterson

isinstance(f, collections.Callable) is more correct

üst 5850389a
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment