Treffer: Mastering Object-oriented Python : If You Want to Master Object-oriented Python Programming This Book Is a Must-have. With 750 Code Samples and a Relaxed Tutorial, It's a Seamless Route to Programming Python.
Weitere Informationen
Key FeaturesBook DescriptionThis 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.What you will learnCreate applications with flexible logging, powerful configuration and commandline options, automated unit tests, and good documentationGet to grips with different design patterns for the __init__() methodDesign callable objects and context managersPerform object serialization in formats such as JSON, YAML, Pickle, CSV, and XMLMap Python objects to a SQL database using the builtin SQLite moduleTransmit Python objects via RESTful web servicesDevise strategies for automated unit testing, including how to use the doctest and the unittest.mock moduleParse commandline arguments and integrate this with configuration files and environment variablesWho this book is for