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 protocol, th...

Descripción completa

Detalles Bibliográficos
Autor principal: Zimmerman, Jacob. author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Berkeley, CA : Apress 2018.
Edición:2nd ed. 2018.
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630367006719
Tabla de Contenidos:
  • 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.