Python Descriptors
Seiten
2016
|
1st ed.
Apress (Verlag)
978-1-4842-2504-2 (ISBN)
Apress (Verlag)
978-1-4842-2504-2 (ISBN)
- Titel erscheint in neuer Auflage
- Artikel merken
Zu diesem Artikel existiert eine Nachauflage
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.
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.
Jacob Zimmerman is a certified Java programmer and a Python and Kotlin enthusiast.
Part I: About DescriptorsChapter 1: What is a DescriptorChapter 2: The Descriptor ProtocolChapter 3: What Are Descriptors Good For?Chapter 4: Descriptors in the Standard LibraryChapter 5: Attribute Access and DescriptorsPart II: Making DescriptorsChapter 6: Which Methods Are Needed?Chapter 7: Storing the AttributesChapter 8: Read-Only DescriptorsChapter 9: Writing _delete_()Chapter 10: Descriptors are Classes TooChapter 11: Reusing the WheelChapter 12: Other Uses of Descriptors in the World
Erscheinungsdatum | 16.12.2016 |
---|---|
Zusatzinfo | 4 Illustrations, color; 1 Illustrations, black and white; XV, 64 p. 5 illus., 4 illus. in color. |
Verlagsort | Berkley |
Sprache | englisch |
Maße | 155 x 235 mm |
Gewicht | 1416 g |
Themenwelt | Informatik ► Programmiersprachen / -werkzeuge ► Python |
Informatik ► Theorie / Studium ► Compilerbau | |
Schlagworte | Coding • descriptors • programming • Python • Python (Programmiersprache) • Software • Standard Library |
ISBN-10 | 1-4842-2504-X / 148422504X |
ISBN-13 | 978-1-4842-2504-2 / 9781484225042 |
Zustand | Neuware |
Haben Sie eine Frage zum Produkt? |
Mehr entdecken
aus dem Bereich
aus dem Bereich
eine praktische, projektbasierte Programmiereinführung
Buch | Softcover (2023)
dpunkt (Verlag)
32,90 €
Grundlagen und Praxis der Python-Programmierung
Buch | Softcover (2024)
O'Reilly (Verlag)
49,90 €