All Talks

Practical decorators

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 …

You might be interested in: