Python Decorators 3: Turning a function into a class instance

Опубликовано: 01 Май 2018
на канале: Sebastiaan Mathôt
12,308
504

[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/


Смотрите видео Python Decorators 3: Turning a function into a class instance онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Sebastiaan Mathôt 01 Май 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 12,308 раз и оно понравилось 504 людям.