Python Descriptors

This short book is a collection of knowledge and ideas from many sources on dealing with and creating Python descriptors. And, after going through the things all descriptors have in common, author Jacob Zimmerman explores concepts that have multiple ways of being implemented, as well as completely n...

Full description

Bibliographic Details
Main Author: Zimmerman, Jacob
Format: eBook
Language:English
Published: Berkeley, CA Apress 2016, 2016
Edition:1st ed. 2016
Subjects:
Online Access:
Collection: Springer eBooks 2005- - Collection details see MPG.ReNa
Description
Summary:This short book is a collection of knowledge and ideas from many sources on dealing with and creating Python descriptors. And, after going through the things all descriptors have in common, author Jacob Zimmerman explores concepts that have multiple ways of being implemented, as well as completely new ideas never seen elsewhere before. Python Descriptors will give you a good understanding of how descriptors work, and teach you techniques that will enable you to avoid the big gotchas associated with working with them. 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. What is a descriptor protocol What is attribute access and how they apply to descriptors How to make descriptors and why Which Methods areneeded How to store attributes How to do Read-Only Descriptors and Writing _delete() How to explore the descriptor classes How to apply the other uses of descriptors and more
Physical Description:XV, 64 p. 5 illus., 4 illus. in color online resource
ISBN:9781484225059