Intro to Descriptors

Python Morsels Exercise Path

These 2 exercises should give you a taste for what descriptors are and how they work.

You probably won't ever need to create descriptors yourself in Python, but it's nice to know about them (classmethod, staticmethod, property, and the method calling syntax in Python are all descriptor-powered).

Exercises included
alias
class_property
Loading...