mirror of
https://github.com/python/cpython.git
synced 2025-09-28 03:13:48 +00:00
note callable is back in 3.2
This commit is contained in:
parent
b21f51a9d0
commit
414ffa86b5
1 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,9 @@ and off individually. They are described here in more detail.
|
||||||
.. 2to3fixer:: callable
|
.. 2to3fixer:: callable
|
||||||
|
|
||||||
Converts ``callable(x)`` to ``isinstance(x, collections.Callable)``, adding
|
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
|
.. 2to3fixer:: dict
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue