An interesting topic was raised in the comments to the answer to the question .
The discussion began with whether list () can be considered a function. Or is the class constructor an absolutely separate entity that is not a function?
Then the question arose more generally - can any callable object be considered as a function or not?
It is clear that there are "real" functions for which type shows <type 'function'> , and there are other objects for which it does not show this. However, even for methods, it shows not <type 'function'> , but very much even <type 'instancemethod'> . So now - methods for functions not to consider?
I was sure that in python it is correct to call any called object as a function. But google did not give me any authoritative sources on this issue, only private opinions.
Can someone refer me to an authoritative source that covers this topic, or bring any valid argument on this issue?
<class 'method'>, however - andreymal 8:43 pm