Plus d’un million de livres à portée de main !
Bookbot

Jacob Zimmerman

    Python Descriptors
    Python Descriptors
    • Python Descriptors

      Understanding and Using the Descriptor Protocol

      • 112pages
      • 4 heures de lecture
      2,0(1)Évaluer

      The book provides an in-depth exploration of descriptors, detailing their definition, functionality, and practical applications. It simplifies the descriptor protocol, making it accessible for readers. The author offers numerous tips, patterns, and real-world examples to illustrate the flexibility of descriptors, ensuring that readers can effectively create and utilize them in various contexts. Through this practical guidance, readers will gain a thorough understanding of how to leverage descriptors to enhance their projects.

      Python Descriptors
    • Python Descriptors

      • 84pages
      • 3 heures de lecture

      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./div 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.

      Python Descriptors