In the last part, we’ve seen how functions can be passed on as argument and received as return values, and how this can work to compose pretty sophisticated utilities like decorators. This time, we’ll take a closer look at functions as Python objects, and figure out what makes them tick.
The Unusual Suspects
First and foremost, we can just define a function and have a look at it attributes; see what catches our eye:

#python #software-design #function

Function Internals 1
1.15 GEEK