Hacker News new | past | comments | ask | show | jobs | submit login
Python FAQ: Descriptors (veekun.com)
41 points by easonchan42 on May 25, 2012 | hide | past | favorite | 2 comments



Descriptors are among the blackest of Python's black magic, but they serve a very useful purpose. Thanks for helping to make them easier to understand.


An interesting usage of descriptors not mentioned in the article are bound methods, which turn Class.function(self, x) into instance.method(x).




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: