Загрузка страницы

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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
6 мая 2019 г. 7:49:59
00:29:12
Яндекс.Метрика