10.05.2017 - This is possible because in Python, function is a first-class citizen, meaning that function can be used as a parameter, a return value and can be assigned to variable. In this small post, some use cases of decorators in Flask will be Adding the login check for every route is quite cumbersome and violates .