A decorator is actually a function that normally takes a function being an argument and returns a closure. The closure is a list of internal functions and free variables. J0HNJ0HN 27k55 gold badges5858 silver badges8888 bronze badges 5 93 The full context (most-upvoted solution) is nice, but this response was https://smartworldeveloper.in/