Before we go there, lets look at a simpler example of a decorator to get an idea of how itself, and then returns the result of calling func , passing along any and all arguments. *args allows you to define a function that accepts a variable number of . Oh yeah, this was supposed to be about flask and web programming right?.