Reuven M. Lerner - Practical decorators - PyCon 2019
"Speaker: Reuven M. Lerner
Decorators are one of Python's most powerful features. But even if you understand what they do, it's not always obvious what you can do with them. Sure, from a practical perspective, they let you remove repeated code from your callables. And semantically, they let you think at a higher level of abstraction, applying the same treatment to functions and classes.
But what can you actually do with them? For many Python developers I've encountered, ecorators sometimes appear to be a solution looking for a problem.
In this talk, I'll show you some practical uses for decorators, and how you can use them to make your code more readable and maintainable, while also providing more semantic power. Moreover, you'll see examples of things would be hard to do without decorators. I hope that after this talk, you'll have a good sense of how to use decorators in your own Python projects.
Slides can be found at: https://speakerdeck.com/pycon2019 and https://github.com/PyCon/2019-slides"
Видео Reuven M. Lerner - Practical decorators - PyCon 2019 канала PyCon 2019
Decorators are one of Python's most powerful features. But even if you understand what they do, it's not always obvious what you can do with them. Sure, from a practical perspective, they let you remove repeated code from your callables. And semantically, they let you think at a higher level of abstraction, applying the same treatment to functions and classes.
But what can you actually do with them? For many Python developers I've encountered, ecorators sometimes appear to be a solution looking for a problem.
In this talk, I'll show you some practical uses for decorators, and how you can use them to make your code more readable and maintainable, while also providing more semantic power. Moreover, you'll see examples of things would be hard to do without decorators. I hope that after this talk, you'll have a good sense of how to use decorators in your own Python projects.
Slides can be found at: https://speakerdeck.com/pycon2019 and https://github.com/PyCon/2019-slides"
Видео Reuven M. Lerner - Practical decorators - PyCon 2019 канала PyCon 2019
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Ariel Ortiz - Design Patterns in Python for the Untrained Eye - PyCon 2019](https://i.ytimg.com/vi/o1FZ_Bd4DSM/default.jpg)
![Anthony Shaw - Wily Python: Writing simpler and more maintainable Python - PyCon 2019](https://i.ytimg.com/vi/dqdsNoApJ80/default.jpg)
![Al Sweigart Yes, It's Time to Learn Regular Expressions PyCon 2017](https://i.ytimg.com/vi/abrcJ9MpF60/default.jpg)
![Rachael Tatman - Put down the deep learning: When not to use neural networks and what to do instead](https://i.ytimg.com/vi/qw5dBdTXLEs/default.jpg)
![Nina Zakharenko - Elegant Solutions For Everyday Python Problems - PyCon 2018](https://i.ytimg.com/vi/WiQqqB9MlkA/default.jpg)
![Raymond Hettinger - Dataclasses: The code generator to end all code generators - PyCon 2018](https://i.ytimg.com/vi/T-TwcmT6Rcw/default.jpg)
![Tutorial: Geir Arne Hjelle - Introduction to Decorators: Power Up Your Python Code](https://i.ytimg.com/vi/T8CQwGIsrx4/default.jpg)
![Python Tutorial: Decorators - Dynamically Alter The Functionality Of Your Functions](https://i.ytimg.com/vi/FsAPt_9Bf3U/default.jpg)
![The Mental Game of Python - Raymond Hettinger](https://i.ytimg.com/vi/UANN2Eu6ZnM/default.jpg)
![Łukasz Langa - Life Is Better Painted Black, or: How to Stop Worrying and Embrace Auto-Formatting](https://i.ytimg.com/vi/esZLCuWs_2Y/default.jpg)
![Dustin Ingram - PEP 572: The Walrus Operator - PyCon 2019](https://i.ytimg.com/vi/6uAvHOKofws/default.jpg)
![Kenneth Reitz - Pipenv: The Future of Python Dependency Management - PyCon 2018](https://i.ytimg.com/vi/GBQAKldqgZs/default.jpg)
![Mario Corchero - Exceptional Exceptions - How to properly raise, handle and create them.](https://i.ytimg.com/vi/V2fGAv2R5j8/default.jpg)
![Ariel Ortiz - The Perils of Inheritance: Why We Should Prefer Composition - PyCon 2019](https://i.ytimg.com/vi/YXiaWtc0cgE/default.jpg)
![Russell Keith-Magee - Keynote - PyCon 2019](https://i.ytimg.com/vi/ftP5BQh1-YM/default.jpg)
![Simon Willison - Instant serverless APIs, powered by SQLite - PyCon 2019](https://i.ytimg.com/vi/pTr1uLQTJNE/default.jpg)
![Amjith Ramanujam Awesome Command Line Tools PyCon 2017](https://i.ytimg.com/vi/hJhZhLg3obk/default.jpg)
![](https://i.ytimg.com/vi/9RVT550nDB0/default.jpg)
![Pamela McANulty - Things I Wish They Told Me About The Multiprocessing Module in Python 3](https://i.ytimg.com/vi/5dMOYf0b_20/default.jpg)
![Elana Hashman - The Black Magic of Python Wheels - PyCon 2019](https://i.ytimg.com/vi/02aAZ8u3wEQ/default.jpg)