[issue7006] The replacement suggested for callable(x) in py3k is not equivalent
Benjamin Peterson
report at bugs.python.org
Fri Oct 23 02:02:49 CEST 2009
Benjamin Peterson <benjamin at python.org> added the comment:
2009/10/22 Georg Brandl <report at bugs.python.org>:
>
> Georg Brandl <georg at python.org> added the comment:
>
> 2to3 still uses hasattr(x, 'callable')
Do you have strong opinions about this? IMO, hasattr(x, '__call__') is
compatible enough.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7006>
_______________________________________
More information about the Python-bugs-list
mailing list