-
Book Overview & Buying
-
Table Of Contents
Mastering Object-oriented Python
By :
Mastering Object-oriented Python
By:
Overview of this book
This practical example-oriented guide will teach you advanced concepts of object-oriented programming in Python. This book will present detailed examples of almost all of the special method names that support creating classes that integrate seamlessly with Python's built-in features. It will show you how to use JSON, YAML, Pickle, CSV, XML, Shelve, and SQL to create persistent objects and transmit objects between processes. The book also covers logging, warnings, unit testing, configuration files, and how to work with the command line.
This book is broken into three major parts: Pythonic Classes via Special Methods; Persistence and Serialization; Testing, Debugging, Deploying, and Maintaining. The special methods are broken down into several focus areas: initialization, basics, attribute access, callables, contexts, containers, collections, numbers, and more advanced techniques such as decorators and mixin classes.
Table of Contents (26 chapters)
Mastering Object-oriented Python
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Some Preliminaries
The __init__() Method
Integrating Seamlessly with Python Basic Special Methods
Attribute Access, Properties, and Descriptors
The ABCs of Consistent Design
Using Callables and Contexts
Creating Containers and Collections
Creating Numbers
Decorators and Mixins – Cross-cutting Aspects
Serializing and Saving – JSON, YAML, Pickle, CSV, and XML
Storing and Retrieving Objects via Shelve
Storing and Retrieving Objects via SQLite
Transmitting and Sharing Objects
Configuration Files and Persistence
The Logging and Warning Modules
Designing for Testability
Coping With the Command Line
The Module and Package Design
Quality and Documentation
Index