[Python-checkins] cpython (2.7): note callable is back in 3.2
benjamin.peterson
python-checkins at python.org
Mon Oct 24 14:52:35 CEST 2011
http://hg.python.org/cpython/rev/9b6100b3b746
changeset: 73095:9b6100b3b746
branch: 2.7
parent: 73060:0b39f2486314
user: Benjamin Peterson <benjamin at python.org>
date: Mon Oct 24 08:51:15 2011 -0400
summary:
note callable is back in 3.2
files:
Doc/library/2to3.rst | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Doc/library/2to3.rst b/Doc/library/2to3.rst
--- a/Doc/library/2to3.rst
+++ b/Doc/library/2to3.rst
@@ -123,7 +123,9 @@
.. 2to3fixer:: callable
Converts ``callable(x)`` to ``isinstance(x, collections.Callable)``, adding
- an import to :mod:`collections` if needed.
+ an import to :mod:`collections` if needed. Note ``callable(x)`` has returned
+ in Python 3.2, so if you do not intend to support Python 3.1, you can disable
+ this fixer.
.. 2to3fixer:: dict
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list