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 apostofes
Date 2022-04-04.11:51:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1649073069.64.0.34213734425.issue47214@roundup.psfhosted.org>
In-reply-to
Content
the.
```
import inspect
inspect.isfunction
```
does not consider a
```
builtin_function_or_method
```
as a function.
for example,
```
inspect.isfunction(abs)
```
gives,
```
False
```
in the background even the builtin `abs` is a function, so shouldn't it return True?

the way this check is implemented is by matching the type of a builtin_function_or_method with,
```
type(len)
```
and since, `type(len)` is `builtin_function_or_method`, so, the `inspect.isfunction` check gives False.
But in my opinion, it should return True, even for builtin functions or methods.
History
Date User Action Args
2022-04-04 11:51:09apostofessetrecipients: + apostofes
2022-04-04 11:51:09apostofessetmessageid: <1649073069.64.0.34213734425.issue47214@roundup.psfhosted.org>
2022-04-04 11:51:09apostofeslinkissue47214 messages
2022-04-04 11:51:09apostofescreate