148422504X by Unknown

148422504X by Unknown

Author:Unknown
Language: eng
Format: epub


Document Outline

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 Actions

Summary



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.