[https://www.buymeacoffee.com/cogsci] In this video, I show how you can use a decorator to replace a function with a callable class instance that also has methods (class functions) and properties.
You can download the Jupyter Notebook for this video from https://osf.io/2npaf/
Watch video Python Decorators 3: Turning a function into a class instance 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 12,308 once and liked it 504 people.