
report at bugs
Nov 17, 2009, 1:16 PM
Post #2 of 2
(103 views)
Permalink
|
|
[issue7006] The replacement suggested for callable(x) in py3k is not equivalent
[In reply to]
|
|
Antoine Pitrou <pitrou [at] free> added the comment: I also think isinstance(x, collections.Callable) is the correct replacement. Even though it might give a different answer on weird corner cases, it is semantically what you are looking for. (too bad it has a stupid module placement) ---------- nosy: +pitrou _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue7006> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|