Even More Descriptors

Python Morsels Exercise Path

Want more descriptor practice than you'll ever need? Work through the Intro to Descriptors path and then do this one.

The 3 exercises here go deeper into descriptors than you'll likely ever need to go. You'll also get a bit of practice with attribute lookups, memory management (important in descriptor land sometimes), and inheritance.

Exercises included
validators
cached_property
computed_property
Loading...