Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 18, 2009, 2:16 AM

Post #1 of 1 (125 views)
Permalink
[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

Nick Coghlan <ncoghlan [at] gmail> added the comment:

Antoine Pitrou wrote:
> 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)

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 <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

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.