Python Descriptors

  • Jacob┬áZimmerman

Table of contents

  1. Front Matter
    Pages i-xv
  2. About Descriptors

    1. Front Matter
      Pages 1-1
    2. Jacob Zimmerman
      Pages 3-4
    3. Jacob Zimmerman
      Pages 5-6
    4. Jacob Zimmerman
      Pages 7-8
    5. Jacob Zimmerman
      Pages 9-13
    6. Jacob Zimmerman
      Pages 15-21
  3. Making Descriptors

    1. Front Matter
      Pages 23-23
    2. Jacob Zimmerman
      Pages 25-28
    3. Jacob Zimmerman
      Pages 29-40
    4. Jacob Zimmerman
      Pages 41-45
    5. Jacob Zimmerman
      Pages 47-47
    6. Jacob Zimmerman
      Pages 49-51
    7. Jacob Zimmerman
      Pages 53-57
    8. Jacob Zimmerman
      Pages 59-60
  4. Back Matter
    Pages 61-64

About this book


This short book is a collection of knowledge and ideas from many sources on dealing with and creating Python descriptors. And, after going through the things all descriptors have in common, author Jacob Zimmerman explores concepts that have multiple ways of being implemented, as well as completely new ideas never seen elsewhere before.

Python Descriptors will give you a good understanding of how descriptors work, and teach you techniques that will enable you to avoid the big gotchas associated with working with them.

This truly is a comprehensive guide to creating Python descriptors. As a BONUS: A pip install-able library, descriptor_tools, was written alongside this book and is an open source library on GitHub.

  • What is a descriptor protocol
  • What is attribute access and how they apply to descriptors
  • How to make descriptors and why
  • Which Methods are needed
  • How to store attributes
  • How to do Read-Only Descriptors and Writing _delete()
  • How to explore the descriptor classes
  • How to apply the other uses of descriptors and more


Python descriptors coding Standard Library software programming

Authors and affiliations

  • Jacob┬áZimmerman
    • 1
  1. 1.PlaceholderUSA

Bibliographic information