Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6ca6c2

Browse files
committed
note callable is back in 3.2
1 parent c45fb25 commit d6ca6c2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/library/2to3.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ and off individually. They are described here in more detail.
123123
.. 2to3fixer:: callable
124124
125125
Converts ``callable(x)`` to ``isinstance(x, collections.Callable)``, adding
126-
an import to :mod:`collections` if needed.
126+
an import to :mod:`collections` if needed. Note ``callable(x)`` has returned
127+
in Python 3.2, so if you do not intend to support Python 3.1, you can disable
128+
this fixer.
127129
128130
.. 2to3fixer:: dict
129131

0 commit comments

Comments
 (0)