Python 3 Object Oriented Programming 3rd Edition Dusty Phillips [Dusty Phillips] - Download the full set of chapters carefully compiled
Python 3 Object Oriented Programming 3rd Edition Dusty Phillips [Dusty Phillips] - Download the full set of chapters carefully compiled
com
https://textbookfull.com/product/python-3-object-oriented-
programming-3rd-edition-dusty-phillips-dusty-phillips/
OR CLICK HERE
DOWLOAD EBOOK
https://textbookfull.com/product/swift-3-object-oriented-programming-
gaston-c-hillar/
textbookfull.com
https://textbookfull.com/product/deep-learning-in-python-an-object-
oriented-programming-1st-edition-hong-m-lei-lei/
textbookfull.com
https://textbookfull.com/product/android-programming-the-big-nerd-
ranch-guide-2nd-edition-bill-phillips/
textbookfull.com
https://textbookfull.com/product/programming-in-c-object-oriented-
features-1st-edition-laxmisha-rai/
textbookfull.com
Surgical Instrumentation Nancymarie Phillips
https://textbookfull.com/product/surgical-instrumentation-nancymarie-
phillips/
textbookfull.com
https://textbookfull.com/product/astrophysics-for-dummies-cynthia-
phillips/
textbookfull.com
https://textbookfull.com/product/c-programming-an-object-oriented-
approach-1e-ise-behrouz-a-forouzan/
textbookfull.com
https://textbookfull.com/product/the-american-challenge-reader-
michael-phillips/
textbookfull.com
Dusty Phillips
BIRMINGHAM - MUMBAI
Python 3 Object-Oriented
Programming Third Edition
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any
form or by any means, without the prior written permission of the publisher, except in the case of brief
quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information
presented. However, the information contained in this book is sold without warranty, either express or implied.
Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages
caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products
mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the
accuracy of this information.
ISBN 978-1-78961-585-2
www.packt.com
mapt.io
Mapt is an online digital library that gives you full access to over
5,000 books and videos, as well as industry leading tools to help you
plan your personal development and advance your career. For more
information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical
eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
developers and tech professionals, just like you, to help them share
their insight with the global tech community. You can make a
general application, apply for a specific hot topic that we are
recruiting an author for, or submit your own idea.
Table of Contents
Title Page
Packt Upsell
Why subscribe?
Packt.com
Contributors
Conventions used
Get in touch
Reviews
1. Object-Oriented Design
Introducing object-oriented
Composition
Inheritance
Multiple inheritance
Case study
Exercises
Summary
2. Objects in Python
Adding attributes
Making it do something
Talking to yourself
More arguments
Explaining yourself
Organizing modules
Absolute imports
Relative imports
Third-party libraries
Case study
Exercises
Summary
Basic inheritance
Extending built-ins
Polymorphism
Abstract base classes
Exercises
Summary
Handling exceptions
The exception hierarchy
Exercises
Summary
Manager objects
Removing duplicate code
In practice
Case study
Exercises
Summary
Dataclasses
Dictionaries
Counter
Lists
Sorting lists
Sets
Exercises
Summary
7. Python Object-Oriented Shortcuts
Python built-in functions
Enumerate
File I/O
Placing it in context
Exercises
Summary
8. Strings and Serialization
Strings
String manipulation
String formatting
Escaping braces
f-strings can contain Python code
Matching patterns
Matching a selection of characters
Escaping characters
Matching multiple characters
Serializing objects
Customizing pickles
Serializing web objects
Case study
Exercises
Summary
9. The Iterator Pattern
List comprehensions
Set and dictionary comprehensions
Generator expressions
Generators
Strategy in Python
The state pattern
A state example
State versus strategy
Summary
12. Testing Object-Oriented Programs
Why test?
Test-driven development
Unit testing
Assertion methods
Reducing boilerplate and cleaning up
Organizing and running tests
Implementing it
Exercises
Summary
13. Concurrency
Threads
The many problems with threads
Shared memory
The global interpreter lock
Thread overhead
Multiprocessing
Multiprocessing pools
Queues
AsyncIO
AsyncIO in action
Reading an AsyncIO Future
Executors
AsyncIO clients
Case study
Exercises
Summary
Along the way, we'll learn how to integrate the object-oriented and
the not-so-object-oriented aspects of the Python programming
language. We will learn the complexities of string and file
manipulation, emphasizing the difference between binary and textual
data.
We'll then cover the joys of unit testing, using not one, but two unit
testing frameworks. Finally, we'll explore, through Python's various
concurrency paradigms, how to make objects work well together at
the same time.
creating and using objects. We will see how to wrap data using
properties and restrict data access. This chapter also discusses the
DRY principle and how not to repeat code.
Once the file is downloaded, please make sure that you unzip or
extract the folder using the latest version of:
The code bundle for the book is also hosted on GitHub at https://githu
. In case
b.com/PacktPublishing/Python-3-Object-Oriented-Programming-Third-Edition
We also have other code bundles from our rich catalog of books and
videos available at https://github.com/PacktPublishing/. Check them out!
Conventions used
There are a number of text conventions used throughout this book.
Piracy: If you come across any illegal copies of our works in any
form on the Internet, we would be grateful if you would provide us
with the location address or website name. Please contact us at
copyright@packt.com with a link to the material.
Language: English
BY
E. PHILLIPS OPPENHEIM
WITH ILLUSTRATIONS BY
WALLACE MORGAN
TORONTO
1923
Copyright, 1923,
By Little, Brown, and Company.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com