Message381080
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? |
|
Date |
User |
Action |
Args |
2020-11-16 08:38:24 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, levkivskyi, hauntsaninja, kj |
2020-11-16 08:38:24 | serhiy.storchaka | set | messageid: <1605515904.19.0.0548405252776.issue42102@roundup.psfhosted.org> |
2020-11-16 08:38:24 | serhiy.storchaka | link | issue42102 messages |
2020-11-16 08:38:23 | serhiy.storchaka | create | |
|