Python Descriptors, 2nd Edition

Understanding and Using the Descriptor Protocol



Bookstore > Books > Python Descriptors, 2nd Edition

Price$31.55 - $44.02
Rating
AuthorJacob Zimmerman
PublisherApress
Published2018
Pages97
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101484237269
ISBN-139781484237267
EBook Hardcover Paperback

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.

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.





Similar Books


Python Cookbook, 2nd Edition

Python Cookbook, 2nd Edition

by Alex Martelli, Anna Ravenscroft, David Ascher

Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications. It is now being used by an increasing number of major organizations, including NASA and Google.Updated for Python 2.4, The Python Cookbook, 2nd Edition offers a wealt...

Price:  $9.15  |  Publisher:  O'Reilly Media  |  Release:  2005

Python Algorithms, 2nd Edition

Python Algorithms, 2nd Edition

by Magnus Lie Hetland

Python Algorithms, 2nd Edition explains the Python approach to algorithm analysis and design. Written by Magnus Lie Hetland, author of Beginning Python, this book is sharply focused on classical algorithms, but it also gives a solid understanding of fundamental algorithmic problem-solving techniques.The book deals with some of the most im...

Price:  $34.96  |  Publisher:  Apress  |  Release:  2014

Programming in Python 3, 2nd Edition

Programming in Python 3, 2nd Edition

by Mark Summerfield

It is more powerful, convenient, consistent, and expressive than ever before. Now, leading Python programmer Mark Summerfield demonstrates how to write code that takes full advantage of Python 3's features and idioms. Programming in Python 3, Second Edition, brings together all the knowledge you need to write any program, use any standard...

Price:  $33.26  |  Publisher:  Addison-Wesley  |  Release:  2009

Python Geospatial Development, 2nd Edition

Python Geospatial Development, 2nd Edition

by Erik Westra

Geospatial development links your data to places on the Earth's surface. Writing geospatial programs involves tasks such as grouping data by location, storing and analyzing large amounts of spatial information, performing complex geospatial calculations, and drawing colorful interactive maps. In order to do this well, you'll need appropri...

Price:  $29.99  |  Publisher:  Packt Publishing  |  Release:  2013

Learning Geospatial Analysis with Python, 2nd Edition

Learning Geospatial Analysis with Python, 2nd Edition

by Joel Lawhead

Geospatial Analysis is used in almost every field you can think of from medicine, to defense, to farming. This book will guide you gently into this exciting and complex field. It walks you through the building blocks of geospatial analysis and how to apply them to influence decision making using the latest Python software.Learning Geospat...

Price:  $39.99  |  Publisher:  Packt Publishing  |  Release:  2015

Kivy - Interactive Applications and Games in Python, 2nd Edition

Kivy - Interactive Applications and Games in Python, 2nd Edition

by Roberto Ulloa

Kivy - Interactive Applications and Games in Python 2nd Edition, will equip you with all the necessary knowledge to create interactive, responsive, and cross-platform applications and games.This book introduces the Kivy language and the necessary components so you can implement a graphical user interface (GUI) and learn techniques to hand...

Price:  $34.99  |  Publisher:  Packt Publishing  |  Release:  2015

Pro Python System Administration, 2nd Edition

Pro Python System Administration, 2nd Edition

by Rytis Sileika

Pro Python System Administration, 2nd Edition explains and shows how to apply Python scripting in practice. It will show you how to approach and resolve real-world issues that most system administrators will come across in their careers. This book has been updated using Python 2.7 and Python 3 where appropriate. It also uses various new a...

Price:  $54.99  |  Publisher:  Apress  |  Release:  2014

Beginning Python Games Development, 2nd Edition

Beginning Python Games Development, 2nd Edition

by Harrison Kinsley, Will McGugan

Learn how to create compelling games using Python and the PyGame games development library. Beginning Python Games Development, 2nd Edition will teach you how to create visuals, do event handling, create 3D games, add media elements, and integrate OpenGL into your Python game.In this update to the first ever book to cover the popular open...

Price:  $42.59  |  Publisher:  Apress  |  Release:  2015