Learn about Descriptors in Python

Have you seen this code or maybe have written code like this?

This code snippet partially comes from the tutorial of a popular ORM package called SQLAlchemy. If you ever wonder why the attributes id and name aren't passed into the __init__ method and bind to the instance like regular class does.This post will clear your doubts.


This is a companion discussion topic for the original entry at http://iq.opengenus.org/descriptors-in-python/