Python Object-Oriented Programming - Steven F. Lott, Dusty Phillips

Python Object-Oriented Programming

Build robust and maintainable object-oriented Python applications and libraries
Buch | Softcover
714 Seiten
2021 | 4th Revised edition
Packt Publishing Limited (Verlag)
978-1-80107-726-2 (ISBN)
44,85 inkl. MwSt
Being familiar with object-oriented design is an essential part of programming in Python. This new edition includes all the topics that made Python Object-Oriented Programming an instant Packt classic. Moreover, it's packed with updated content to reflect more recent changes in the core Python libraries and cover modern third-party packages.
A comprehensive guide to exploring modern Python through data structures, design patterns, and effective object-oriented techniques

Key Features

Build an intuitive understanding of object-oriented design, from introductory to mature programs
Learn the ins and outs of Python syntax, libraries, and best practices
Examine a machine-learning case study at the end of each chapter

Book DescriptionObject-oriented programming (OOP) is a popular design paradigm in which data and behaviors are encapsulated in such a way that they can be manipulated together. Python Object-Oriented Programming, Fourth Edition dives deep into the various aspects of OOP, Python as an OOP language, common and advanced design patterns, and hands-on data manipulation and testing of more complex OOP systems. These concepts are consolidated by open-ended exercises, as well as a real-world case study at the end of every chapter, newly written for this edition. All example code is now compatible with Python 3.9+ syntax and has been updated with type hints for ease of learning.

Steven and Dusty provide a comprehensive, illustrative tour of important OOP concepts, such as inheritance, composition, and polymorphism, and explain how they work together with Python's classes and data structures to facilitate good design. In addition, the book also features an in-depth look at Python's exception handling and how functional programming intersects with OOP. Two very powerful automated testing systems, unittest and pytest, are introduced. The final chapter provides a detailed discussion of Python's concurrent programming ecosystem.

By the end of the book, you will have a thorough understanding of how to think about and apply object-oriented principles using Python syntax and be able to confidently create robust and reliable programs.

What you will learn

Implement objects in Python by creating classes and defining methods
Extend class functionality using inheritance
Use exceptions to handle unusual situations cleanly
Understand when to use object-oriented features, and more importantly, when not to use them
Discover several widely used design patterns and how they are implemented in Python
Uncover the simplicity of unit and integration testing and understand why they are so important
Learn to statically type check your dynamic code
Understand concurrency with asyncio and how it speeds up programs

Who this book is forIf you are new to object-oriented programming techniques, or if you have basic Python skills and wish to learn how and when to correctly apply OOP principles in Python, this is the book for you. Moreover, if you are an object-oriented programmer coming from other languages or seeking a leg up in the new world of Python, you will find this book a useful introduction to Python. Minimal previous experience with Python is necessary.

Steven F. 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 useful and helpful to others. Steven has been working with Python since the �90s, building a variety of tools and applications. He's written a number of titles for Packt Publishing, include Mastering Object-Oriented Python, the Modern Python Cookbook, and Python Object-Oriented Programming, Fourth Edition. He's a technomad, and lives on a boat that's usually located on the east coast of the US. He tries to live by his mother's words “Don't come home until you have a story.” Dusty Phillips is a Canadian software developer and an author currently living in New Brunswick. He has been active in the open-source community for 2 decades and has been programming in Python for nearly as long. He holds a master's degree in computer science and has worked for Facebook, the United Nations, and several startups.

Table of Contents

Object-Oriented Design
Objects in Python
When Objects Are Alike
Expecting the Unexpected
When to Use Object-Oriented Programming
Abstract Base Classes and Operator Overloading
Python Data Structures
The Intersection of Object-Oriented and Functional Programming
Strings, Serialization, and File Paths
The Iterator Pattern
Common Design Patterns
Advanced Design Patterns
Testing Object-Oriented Programs
Concurrency

Erscheinungsdatum
Verlagsort Birmingham
Sprache englisch
Maße 75 x 93 mm
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
Informatik Software Entwicklung Objektorientierung
ISBN-10 1-80107-726-6 / 1801077266
ISBN-13 978-1-80107-726-2 / 9781801077262
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
objektorientierte Entwicklung modularer Maschinen für die digitale …

von Thomas Schmertosch; Markus Krabbes; Christian Zinke-Wehlmann

Buch | Hardcover (2024)
Hanser (Verlag)
44,99
Entwicklung von GUIs für verschiedene Betriebssysteme

von Achim Lingott

Buch (2023)
Hanser, Carl (Verlag)
39,99
Principles and Practice Using C++

von Bjarne Stroustrup

Buch | Softcover (2024)
Addison Wesley (Verlag)
85,95