decorators

cover image

Going knee-deep into the internals of Python

cover image

I show toy implementations of Python decorator patterns that may be useful for Data Scientists.

cover image

Do you want to write concise, readable, and efficient code? Well, python decorators may help you on your journey.

cover image

Analyze, test, and re-use your code with little more than an @ symbol

cover image

Let’s master the more advanced topics in no-time

cover image

Learn how you can change the behavior of objce

cover image

Python decorators are a useful but flawed language feature. Intended to make source code easier to write, and a little more readable, they neglect to address another use case: that of the programmer who will be calling the decorated code. If you’re a Python programmer, the following post will show you why decorators exist, and how to compensate for their limitations. And even if you’re not a Python a programmer, I hope to demonstrate the importance of keeping in mind all of the different audiences for the code you write.