Python Descriptors: A Comprehensive Guide

Python Descriptors: A Comprehensive Guide
by Jacob Zimmerman / / / PDF


Read Online 1.6 MB Download


There aren't a ton of really good resources out there for writing Python descriptors, and extremely few books (this may be the only one). This is a sad state of affairs, as it makes it difficult for Python developers to get a really good understanding of how descriptors work and the techniques to avoid the big gotchas associated with working with them. This book hopes to rectify that situation. Between these covers is a collection of knowledge and ideas from many sources on dealing with and creating descriptors. And, after going through the things all descriptors have in common, it explores ideas that have multiple ways of being implemented as well as completely new ideas never seen elsewhere before. This truly is a comprehensive guide to creating Python descriptors. BONUS: A pip installable library, descriptor_tools, was written alongside this book and is an open source library on GitHub at

views: 523