Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sophacles
on March 18, 2012
|
parent
|
context
|
favorite
| on:
A Guide to Python's Magic Methods
One of the better treatments of __get__ and __set__ I've seen. Descriptors are deep and powerful magic, and a bit complex, but when they are appropriate, they are less complex than the alternatives, and allow for cleaner interfaces.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: