Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Sorry, but making builtins.callable generic looks wrong to me. It is a 
predicate, not a constructor. If it would be called "iscallable" instead of 
"callable" nobody would propose to make it generic, right? It's just a 
coincidence that the name of this predicate equals to the name of 
typing.Callable and collections.abc.Callable.

builtins.callable was removed in Python 3.0 in favor of instance check for 
collections.Callable. Maybe removing it again (or renaming to iscallable) would 
solve confusion?

----------

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

Reply via email to