[Python-checkins] r75090 - python/branches/py3k/Doc/whatsnew/3.0.rst

benjamin.peterson python-checkins at python.org
Sun Sep 27 18:32:57 CEST 2009


Author: benjamin.peterson
Date: Sun Sep 27 18:32:56 2009
New Revision: 75090

Log:
use more correct callable replacement

Modified:
   python/branches/py3k/Doc/whatsnew/3.0.rst

Modified: python/branches/py3k/Doc/whatsnew/3.0.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.0.rst	(original)
+++ python/branches/py3k/Doc/whatsnew/3.0.rst	Sun Sep 27 18:32:56 2009
@@ -804,8 +804,8 @@
   ``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.


More information about the Python-checkins mailing list