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.

· Packt Publishing Ltd
3.7
3 reviews
Ebook
634
Pages

About this ebook

Key Features
    Book 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 learn
    • Create applications with flexible logging, powerful configuration and commandline options, automated unit tests, and good documentation
    • Get to grips with different design patterns for the __init__() method
    • Design callable objects and context managers
    • Perform object serialization in formats such as JSON, YAML, Pickle, CSV, and XML
    • Map Python objects to a SQL database using the builtin SQLite module
    • Transmit Python objects via RESTful web services
    • Devise strategies for automated unit testing, including how to use the doctest and the unittest.mock module
    • Parse commandline arguments and integrate this with configuration files and environment variables
    Who this book is for

    Discover more

    Ratings and reviews

    3.7
    3 reviews
    Clifford Dutka (Krovikan)
    May 10, 2016
    Great book if you have knowledge of python already and OOP already. Particularly enjoyed the chapters on Aspect Orientated Programming in Python
    Did you find this helpful?

    About the author

    Steven Lott has been programming since computers were large, expensive, and rare. Working for decades in high tech has given him exposure to a lot of ideas and techniques, some bad, but most are helpful to others. Since the 1990s, Steven has been engaged with Python, crafting an array of indispensable tools and applications. His profound expertise has led him to contribute significantly to Packt Publishing, penning notable titles like "Mastering Object-Oriented," "The Modern Python Cookbook," and "Functional Python Programming." A self-proclaimed technomad, Steven's unconventional lifestyle sees him travelling back and forth across the US. He tries to live by the words “Don't come home until you have a story.”

    Rate this ebook

    Tell us what you think.

    Reading information

    Smartphones and tablets
    Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
    Laptops and computers
    You can listen to audiobooks purchased on Google Play using your computer's web browser.
    eReaders and other devices
    To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.