Python functions are a lot more flexible than you would think. They are much more than just code generation specifications for a compiler. They are full-blown objects stored in pieces of memory as such that they can be freely passed around a program and called indirectly. They also support operations that have little to do with calls at all like Attribute storage and Annotation.
7 min read
Primer: Python First Class Functions and Decorators
By lakshmi b on Aug 12, 2020 9:26:02 AM