Authors: Jacob Zimmerman
A unique book dedicated to Python descriptors
Deals with important topic for the many applications Python has
Python is popular for web development, big data analytics, finance, game development and more
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.
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.
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 you'll learn:
• 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
Table of contents (12 chapters)
Front Matter
About Descriptors
• Front Matter
• What Is a Descriptor?
• The Descriptor Protocol
• What Are Descriptors Good For?
• Descriptors in the Standard Library
• Attribute Access and Descriptors
Making Descriptors
• Front Matter
• Which Methods Are Needed?
• Storing the Attributes
• Read-Only Descriptors
• Writing __delete__()
• Descriptors are Classes Too
• Reusing the Wheel
• Other Uses of Descriptors in the World
Back Matter
原版 PDF + EPUB:
本帖隐藏的内容
原版 PDF:PDF 压缩包:
- Python Descriptors.pdf
EPUB:
EPUB 压缩包:
- Python Descriptors.epub
PDF + EPUB 压缩包:
- Python Descriptors.pdf
- Python Descriptors.epub