(For more, visit https://pythontutorials.eu !) In this video, I show how you can create a Python decorator that accepts arguments by implementing what you might call a 'meta-decorator'. You can also create decorators that work both with and without arguments.
You can download the Jupyter Notebook for this video from https://osf.io/u96zr/