Python descriptors. (2016)
- Record Type:
- Book
- Title:
- Python descriptors. (2016)
- Main Title:
- Python descriptors
- Further Information:
- Note: Jacob Zimmerman.
- Other Names:
- (Computer programmer), Zimmerman, Jacob
- Contents:
- At a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Part I: About Descriptors; Chapter 1: What Is a Descriptor?; Data Descriptors vs. Nondata Descriptors; The Use of Descriptors by Python; Summary; Chapter 2: The Descriptor Protocol; __get__(self, instance, owner); __set__(self, instance, value); __delete__(self, instance); Summary; Chapter 3: What Are Descriptors Good For?; Data Encapsulation; Reuse of Read/Write Patterns; Lazy Instantiation; Validation; Writing for the Class Level; Hiding Function Calls Within Attribute Access. Triggering ActionsSummary; Chapter 4: Descriptors in the Standard Library; property; classmethod; staticmethod; Regular Methods; Summary; Chapter 5: Attribute Access and Descriptors; Instance Access; Class Access; Set and Delete Calls; The Reasoning Behind Data vs. Nondata Descriptors; Summary; Part II: Making Descriptors; Chapter 6: Which Methods Are Needed?; When __get__(€) Is Called Without instance; Raise Exception or Return self; Unbound Attributes; Summary; Chapter 7: Storing the Attributes; Class-Level Storage; Storing Data on the Descriptor; Storing on the Instance Dictionary. Asking for the LocationSet-it-and-forget-it Descriptors; Indirectly Asking for the Location; Name Mangling; Fetching the Name; Keying on the ID; Letting the User Take Care of It; Metadescriptors; Summary; Chapter 8: Read-Only Descriptors; Set-Once Descriptors; Secret-Set Descriptors; Forced-Set Descriptors; ClassAt a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Part I: About Descriptors; Chapter 1: What Is a Descriptor?; Data Descriptors vs. Nondata Descriptors; The Use of Descriptors by Python; Summary; Chapter 2: The Descriptor Protocol; __get__(self, instance, owner); __set__(self, instance, value); __delete__(self, instance); Summary; Chapter 3: What Are Descriptors Good For?; Data Encapsulation; Reuse of Read/Write Patterns; Lazy Instantiation; Validation; Writing for the Class Level; Hiding Function Calls Within Attribute Access. Triggering ActionsSummary; Chapter 4: Descriptors in the Standard Library; property; classmethod; staticmethod; Regular Methods; Summary; Chapter 5: Attribute Access and Descriptors; Instance Access; Class Access; Set and Delete Calls; The Reasoning Behind Data vs. Nondata Descriptors; Summary; Part II: Making Descriptors; Chapter 6: Which Methods Are Needed?; When __get__(€) Is Called Without instance; Raise Exception or Return self; Unbound Attributes; Summary; Chapter 7: Storing the Attributes; Class-Level Storage; Storing Data on the Descriptor; Storing on the Instance Dictionary. Asking for the LocationSet-it-and-forget-it Descriptors; Indirectly Asking for the Location; Name Mangling; Fetching the Name; Keying on the ID; Letting the User Take Care of It; Metadescriptors; Summary; Chapter 8: Read-Only Descriptors; Set-Once Descriptors; Secret-Set Descriptors; Forced-Set Descriptors; Class Constants; Summary; Chapter 9: Writing __delete__(); Summary; Chapter 10: Descriptors are Classes Too; Inheritance; More Methods; Optional/Default Parameters; Descriptors on Descriptors; Passing an Instance Around; Descriptors Just Abstract Method Calls; Summary. Chapter 11: Reusing the WheelStorage Solutions; Read-Only Solutions; Simple Unbound Attributes; Summary; Chapter 12: Other Uses of Descriptors in the World; SQLAlchemy4; Jigna; Elk; Validators; Summary; Bibliography; Index. … (more)
- Publisher Details:
- United States : Apress
- Publication Date:
- 2016
- Extent:
- 1 online resource
- Subjects:
- 005.13/3
004
Computer science
Python (Computer program language)
COMPUTERS -- Programming Languages -- Python
Python (Computer program language)
Computer Science
Python
Programming Languages, Compilers, Interpreters
Programming Techniques
Computers -- Programming Languages -- General
Computers -- Programming -- General
Programming & scripting languages: general
Computer programming / software development
Python (Computer program language)
Electronic books - Languages:
- English
- ISBNs:
- 9781484225059
1484225058
9781484225042 - Related ISBNs:
- 9781484225042
148422504X - Notes:
- Note: Includes bibliographical references and index.
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.368874
- Ingest File:
- 02_347.xml