This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author apostofes
Recipients Dennis Sweeney, apostofes
Date 2022-04-04.17:20:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:40apostofessetrecipients: + apostofes, Dennis Sweeney
2022-04-04 17:20:40apostofessetmessageid: <>
2022-04-04 17:20:40apostofeslinkissue47214 messages
2022-04-04 17:20:40apostofescreate