Python Object-Oriented Programming: Build robust and maintainable object-oriented Python applications and libraries, 4th Edition
(as of May 08,2022 19:10:46 UTC – Details)
From the Publisher
Topics Covered: Object-Oriented Design When to Use OOP Abstract Classes and Operator Overloading Python Data Structures The Intersection of OOP and Functional Programming Strings, Serialization, and File Paths The Iterator Pattern …and more!
What’s new in this fourth edition of Python Object-Oriented Programming?
This fourth edition builds upon classes, data encapsulation, and exceptions with an emphasis on when you can use each principle to develop well-designed software. You’ll learn how to tackle a project using OOP from all its different perspectives and see how a design evolves over time.
Updated for Python 3.9+ Expanded to cover abstract base classes and operator overloading Updated to cover latest asyncio features in the concurrency chapter Introduction to new automated testing systems, unit tests, and pytest
How does this book help readers learn about Python Object-Oriented Programming?
Python Object-Oriented Programming, 4th Edition takes you through the fundamentals of object-oriented programming principles and how to effectively implement them in Python, providing clear, intuitive explanations supplemented with useful example code throughout.
This book also shows you how to use Python’s built-in exceptions and data structures, as well as elements of the Python standard library. It also demonstrates how to use various concurrency libraries available as part of Python; this lets you write software that can make use of multiple cores and multiple processors in a modern computer.
We’ve illustrated as many object-oriented programming techniques and situations as possible to provide clear guidance for developers who are trying to expand Python skills. The main goal is to work from foundational object-oriented design concepts through to more sophisticated applications of those concepts.
What makes this book different from other Python OOP books?
Each chapter discusses a case study, which can be solved using a variety of techniques that are unique to that chapter. The idea of a consistent case study with multiple solutions is a valuable part of the book. It’s very important – especially for programmers new to object-oriented design – to see multiple solutions to a problem.
We also feel unit testing is an essential ingredient that’s often omitted from a lot of writing about programming and programming languages. The entire book’s set of examples has a complete unit test suite. This even includes running the mypy tool in strict mode on all the code. In addition to talking about testing in the book, the code repository associated with the book has all the example doctests and the code unit tests for all the examples.
Additionally, we worry about an over-emphasis on object-oriented design and programming. We’ve included a chapter on functional programming techniques because these are part of Python and shouldn’t be shunned through a – possibly – mistaken bias toward class definitions.
Finally, we’ve fully embraced type annotations. We revised all the examples to make use of type hints.
Key Features: In-depth analysis of common object-oriented design patterns that are suitable to Python’s style Work with data (JSON serialization, validation, and more) Catch exceptions, explore authentication, add tests and concurrency, and implement ML algorithms Case studies are part of one large ML project (building a k-NN classifier to classify a species)
July 2, 2021 January 6, 2021 May 28, 2021 August 31, 2021 October 29, 2021
Reader Knowledge Level
Mastering Beginner to intermediate Mastering Intermediate Beginner
Clear and intuitive explanations of object-oriented programming principles in Python Industry-approved coding practices to write clean and sustainable Python code A perfect blend of theory and practical exercises to enhance your Python coding skills A unified approach to learning Python programming and developing quantum computing skills A holistic understanding of Python programming through concise tutorials and real-life projects
Python 3.9 Python 3.9 Python 3.9 Python 3.9 Python 3.9
4.3 out of 5 4.6 out of 5 4.4 out of 5 5 out of 5 4.7 out of 5
630 422 714 744 552
Publisher : Packt Publishing; 4th ed. edition (July 2, 2021)
Language : English
Paperback : 714 pages
ISBN-10 : 1801077266
ISBN-13 : 978-1801077262
Item Weight : 2.66 pounds
Dimensions : 7.5 x 1.61 x 9.25 inches