Nick Coghlan <ncogh...@gmail.com> added the comment:

Antoine Pitrou wrote:
> Antoine Pitrou <pit...@free.fr> 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)

Yes, I was very surprised not to find it as abc.Callable...

Regards,
Nick.

----------
title: The replacement suggested for callable(x) in py3k is not equivalent -> 
The replacement suggested for callable(x) in py3k is not  equivalent

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7006>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to