开发工具:
文件大小: 1mb
下载次数: 0
上传时间: 2016-12-16
详细说明: This short book on Python descriptors is a collection of knowledge and ideas from many sources on dealing with and creating descriptors. And, after going through the things all descriptors have in common, the author explores ideas that have multiple ways of bein g implemented as well as completely new ideas never seen elsewhere before. There aren't many good resources out there for writing Python descriptors, and extremely few books. This is a sad state of affairs, as it makes it difficult for Python developers to get a really good understanding of how descriptors work and the techniques 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 you'll learn What is a descriptor protocol What is attribute access and how they apply to descriptors How to make descriptors and why Which Methods are needed 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 Who is this book for This book is for experienced Python coders, programmers and developers. Table of Contents 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 Too Chapter 11: Reusing the Wheel Chapter 12: Other Uses of Descriptors in the World ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.