use more correct callable replacement
This commit is contained in:
parent
75636af5db
commit
5770847da6
@ -804,8 +804,8 @@ Builtins
|
|||||||
``f(*args)``.
|
``f(*args)``.
|
||||||
|
|
||||||
* Removed :func:`callable`. Instead of ``callable(f)`` you can use
|
* Removed :func:`callable`. Instead of ``callable(f)`` you can use
|
||||||
``hasattr(f, '__call__')``. The :func:`operator.isCallable` function
|
``hasattr(type(f), '__call__')``. The :func:`operator.isCallable` function is
|
||||||
is also gone.
|
also gone.
|
||||||
|
|
||||||
* Removed :func:`coerce`. This function no longer serves a purpose
|
* Removed :func:`coerce`. This function no longer serves a purpose
|
||||||
now that classic classes are gone.
|
now that classic classes are gone.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user