A decorator can be a functionality that requires a function as an argument and returns a closure. The closure is actually a list of inner functions and free variables. J0HNJ0HN 27k55 gold badges5858 silver badges8888 bronze badges 5 ninety three The full context (most-upvoted remedy) is good, but this remedy https://smartworlddeveloper.co.in/