Message416680
but `callable` returns `True` for classes with `__call__` also, it does not check whether the argument passed to it is a function or not.
I want some way to return `True` for both builtin functions and Python functions, but not for classes.
And similarly, some way to return `True` for both builtin methods and Python methods.
Should the documentation for `inspect.isfunction` include, `this does not include builtin functions.`, and similarly for `inspect.ismethod`?
Should I create a PR to add these two sentences to the documentation? |
|
Date |
User |
Action |
Args |
2022-04-04 17:20:40 | apostofes | set | recipients:
+ apostofes, Dennis Sweeney |
2022-04-04 17:20:40 | apostofes | set | messageid: <1649092840.68.0.173969982848.issue47214@roundup.psfhosted.org> |
2022-04-04 17:20:40 | apostofes | link | issue47214 messages |
2022-04-04 17:20:40 | apostofes | create | |
|