[Python-checkins] cpython (3.2): note callable is back in 3.2

benjamin.peterson python-checkins at python.org
Mon Oct 24 14:52:37 CEST 2011


http://hg.python.org/cpython/rev/d9571fb37269
changeset:   73097:d9571fb37269
branch:      3.2
parent:      73092:451fa5782145
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