Clarify what to use instead of callable().

This commit is contained in:
Guido van Rossum 2007-04-08 16:51:33 +00:00
parent 38fbef2fb2
commit 4834ccd143
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ To be removed:
* ``apply()``: use ``f(*args, **kw)`` instead [2]_ [done]
* ``buffer()``: must die (use a bytes() type instead) (?) [2]_
* ``callable()``: just call the object and catch the exception??? [2]_
* ``callable()``: just use hasattr(x, '__call__') (?) [2]_
* ``compile()``: put in ``sys`` (or perhaps in a module of its own) [2]_
* ``coerce()``: no longer needed [2]_
* ``execfile()``, ``reload()``: use ``exec()`` [2]_