Default arguments in a function when using decorators
Default arguments in a function when using decorators Question: I cannot really tell how to use *args and **kwargs when combined with decorators and default arguments. Let me give you a MWE. def outer(f): def inner(*args, **kwargs): print("args:", args) print("kwargs:", kwargs) return inner @outer def simple(x, y): pass Running the simple function passing arguments in …