(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/
Watch video Python Decorators 2: Decorators with arguments online without registration, duration hours minute second in high quality. This video was added by user Sebastiaan Mathôt 01 May 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 16,118 once and liked it 653 people.