Raphael Nogueira’s Post

If you’ve been using Python for a while, you’ve already used descriptors, even if you’ve never written one yourself. @property, instance methods, cached attributes, ORM fields… all of them rely on the same mechanism. I wrote a deep dive on how Python descriptors work under the hood, how attribute access is resolved, and when descriptors are (and aren’t) a good idea. 👉 https://lnkd.in/dudSFGpE

To view or add a comment, sign in

Explore content categories