
On 7 March 2011 20:09, Joao S. O. Bueno <jsbueno@python.org.br> wrote:
On Mon, Mar 7, 2011 at 2:17 PM, Bill Janssen <janssen@parc.com> wrote:
Terry Reedy <tjreedy@udel.edu> wrote:
On 11/23/2010 6:01 PM, Antoine Pitrou wrote:
The substitute of writing `isinstance(x, collections.Callable)` is not good, 1) because it's wordier 2) because collections is really not an intuitive place where to look for a Callable ABC.
I thnk it should be in the abc module, along with WeakSet
Me too.
Too late. :-)
I was not around here, and although I looked for, I didn't find this on the web:
What was the reasoning for removing "callable" in the first place?
It didn't always do exactly the right thing (but was usually "good enough") and was thought easy to replace with a more accurate alternative (isinstance(foo, abc.Callable) I *think*) which proved annoying in pactise. All the best, Michael js
-><-
Bill _______________________________________________ Python-ideas mailing list Python-ideas@python.org http://mail.python.org/mailman/listinfo/python-ideas
_______________________________________________ Python-ideas mailing list Python-ideas@python.org http://mail.python.org/mailman/listinfo/python-ideas
-- http://www.voidspace.org.uk/ May you do good and not evil May you find forgiveness for yourself and forgive others May you share freely, never taking more than you give. -- the sqlite blessing http://www.sqlite.org/different.html