Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Python Descriptors: Understanding and Using the Descriptor Protocol

Buy
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, the author delves into using and creating descriptors in practice, with plenty of tips, patterns, and real-world guidance. Because descriptors are inherently flexible, you’ll work with multiple examples illustrating how to best take advantage of them.

This second edition includes additions throughout, including new material covering the set_name_() descriptors, new and improved flowcharts to explain the inner workings of descriptors, and a completely new chapter to address instance-level attributes, the easiest way to create descriptors correctly the first time. 

Although brief, Python Descriptors is a comprehensive guide to creating Python descriptors, including a pip install-able library called descriptor_tools, which was written alongside this book and is an open source library on GitHub. After reading this book, you will have a solid understanding of how descriptors work and the techniques to avoid the big gotchas associated with working with them.


What You Will Learn
  • Discover descriptor protocols
  • Master attribute access and how it applies to descriptors
  • Build your own descriptors
  • Use descriptors to store attributes
  • Create read-only descriptors 
  • Explore the descriptor classes
  • Apply the other uses of descriptors 


Who This Book Is For


Experienced Python coders, programmers, and developers.



(HTML tags aren't allowed.)

The Hundred-Year Lie: How to Protect Yourself from the Chemicals That Are Destroying Your Health
The Hundred-Year Lie: How to Protect Yourself from the Chemicals That Are Destroying Your Health

In a devastating exposé in the tradition of Silent Spring and Fast Food Nation, investigative journalist Randall Fitzgerald warns how thousands of man-made chemicals in our food, water, medicine, and environment are making humans the most polluted species on the planet. A century ago in 1906, when Congress enacted the...

Eclipse Rich Ajax Platform: Bringing Rich Client to the Web (FirstPress)
Eclipse Rich Ajax Platform: Bringing Rich Client to the Web (FirstPress)

Eclipse Rich Ajax Platform (RAP) is an innovative toolkit for developing applications that will run as rich clients as well as web applications. Eclipse Rich Ajax Platform is the first book on the new Eclipse RAP, and it introduces the required RCP and OSG/i concepts used by Eclipse RAP.

This firstPress title demonstrates...

CodeIgniter Web Application Blueprints
CodeIgniter Web Application Blueprints

Develop full-featured dynamic web applications using the powerful CodeIgniter MVC framework

About This Book

  • Create your own dynamic web application using wireframes, databases, and language files
  • Develop unique applications to perform simple tasks, such as authorizing users, sharing...

God, Do You Really Care?: Finding Strength When He Seems Distant
God, Do You Really Care?: Finding Strength When He Seems Distant
When the Hits Just Keep On Comin' There are small hits: The car won't start. You lose something valuable. It's raining on your five-hundred-person outdoor event. And there are big hits: She's diagnosed with cancer. You're being laid off. They're getting divorced. Regardless of magnitude, each trial causes us to...
The Harvard Medical School Guide to a Good Night's Sleep
The Harvard Medical School Guide to a Good Night's Sleep
Why would I write a book on sleep? After all, everyone sleeps, it looks easy, and nothing much seems to happen while you’re doing it. That’s what I used to think before I started studying sleep. I first came across the intricacies and mysteries of sleep as an undergraduate studying psychobiology at UCLA in the 1970s. I was amazed at how...
Introduction to Systems Analysis: Mathematically Modeling Natural Systems
Introduction to Systems Analysis: Mathematically Modeling Natural Systems

Systems and their mathematical description play an important role in all branches of science. This book offers an introduction to mathematical modeling techniques. It is intended for undergrad students in applied natural science, in particular earth and environmental science, environmental engineering, as well as ecology, environmental...

©2021 LearnIT (support@pdfchm.net) - Privacy Policy