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 areneeded
- 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
Dieser Download kann aus rechtlichen Gründen nur mit Rechnungsadresse in A, B, BG, CY, CZ, D, DK, EW, E, FIN, F, GR, HR, H, IRL, I, LT, L, LR, M, NL, PL, P, R, S, SLO, SK ausgeliefert werden.