mirror of
https://github.com/python/cpython.git
synced 2025-09-15 13:16:12 +00:00
document new fix_callable behavior
This commit is contained in:
parent
66d8d69cd8
commit
0d19eaf1eb
1 changed files with 2 additions and 1 deletions
|
@ -122,7 +122,8 @@ and off individually. They are described here in more detail.
|
||||||
|
|
||||||
.. 2to3fixer:: callable
|
.. 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
|
.. 2to3fixer:: dict
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue