Jump to ratings and reviews
Rate this book

Python Descriptors

Rate this book
This short book on Python descriptors 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, the author 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. As a bonus: A pip install-able library, descriptor_tools, was written alongside this book and is an open source library on GitHub.
There aren't many good resources out there for writing Python descriptors, and extremely few books. 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.
What You Will Learn
Discover descriptor protocols


Master attribute access and how it applies to descriptors


Make descriptors and discover why you should


Store attributes


Create read-only descriptors and _delete()


Explore the descriptor classes


Apply the other uses of descriptors and more

Who This Book Is For
Experienced Python coders, programmers and developers.

84 pages, Paperback

Published December 8, 2016

1 person is currently reading
3 people want to read

About the author

There are more authors with this name in the database

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
3 (50%)
3 stars
2 (33%)
2 stars
0 (0%)
1 star
1 (16%)
Displaying 1 of 1 review
31 reviews
September 17, 2020
I enjoyed reading this book, especially the first part, it shows a view point of a developer who is not involved in the core development of python itself. He sometimes also says, ask a core developer if you wanna get the exact reasoning behind it 😄

You don’t need an editor open beside you while reading, so I pretty much read it on the bus.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.