[Python-checkins] r77096 - python/trunk/Doc/library/2to3.rst
benjamin.peterson
python-checkins at python.org
Mon Dec 28 21:51:18 CET 2009
Author: benjamin.peterson
Date: Mon Dec 28 21:51:17 2009
New Revision: 77096
Log:
document new fix_callable behavior
Modified:
python/trunk/Doc/library/2to3.rst
Modified: python/trunk/Doc/library/2to3.rst
==============================================================================
--- python/trunk/Doc/library/2to3.rst (original)
+++ python/trunk/Doc/library/2to3.rst Mon Dec 28 21:51:17 2009
@@ -122,7 +122,8 @@
.. 2to3fixer:: callable
- Converts ``callable(x)`` to ``hasattr(x, "__call_")``.
+ Converts ``callable(x)`` to ``isinstance(x, collections.Callable)``, adding
+ an import to :mod:`collections` if needed.
.. 2to3fixer:: dict
More information about the Python-checkins
mailing list