Python Descriptors Understanding and Using the Descriptor Protocol /

Create descriptors and see ideas and examples of how to use descriptors effectively. In this short book, you'll explore descriptors in general, with a deep explanation of what descriptors are, how they work, and how they're used. Once you understand the simplicity of the descriptor protoco...

Celý popis

Uloženo v:
Podrobná bibliografie
Hlavní autor: Zimmerman, Jacob (Autor)
Médium: Elektronický zdroj E-kniha
Jazyk:angličtina
Vydáno: Berkeley, CA : Apress, 2018.
Vydání:2nd ed. 2018.
Témata:
ISBN:9781484237274
On-line přístup: Získat plný text
Tagy: Přidat tag
Žádné tagy, Buďte první, kdo vytvoří štítek k tomuto záznamu!
Obsah:
  • Part I: About Descriptors
  • Chapter 1: What Is a Descriptor?
  • Chapter 2: The Descriptor Protocol
  • Chapter 3: What Are Descriptors Good For?
  • Chapter 4: Descriptors in the Standard Library
  • Chapter 5: Attribute Access and Descriptors
  • Part II: Making Descriptors
  • Chapter 6: Which Methods Are Needed?
  • Chapter 7: Storing the Attributes
  • Chapter 8: Read-Only Descriptors
  • Chapter 9: Writing __delete__()
  • Chapter 10: Descriptors are Classes To
  • Chapter 11: Reusing the Wheel
  • Chapter 12: Instance-Level Descriptors
  • Chapter 13: Other Uses of Descriptors in the World.