Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Table of Contents
Python 3 Object-oriented Programming Second Edition
Python 3 Object-oriented Programming Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Introduction to the second edition
Preface
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
1. Object-oriented Design
Objects and classes
Specifying attributes and behaviors
Hiding details and creating the public interface
Composition
Inheritance
Case study
Exercises
Summary
2. Objects in Python
Modules and packages
Organizing module contents
Who can access my data?
Third-party libraries
Case study
Exercises
Summary
3. When Objects Are Alike
Multiple inheritance
Polymorphism
Abstract base classes
Case study
Exercises
Summary
4. Expecting the Unexpected
Case study
Exercises
Summary
5. When to Use Object-oriented Programming
Adding behavior to class data with properties
Manager objects
Case study
Exercises
Summary
6. Python Data Structures
Tuples and named tuples
Dictionaries
Lists
Sets
Extending built-ins
Queues
Case study
Exercises
Summary
7. Python Object-oriented Shortcuts
An alternative to method overloading
Functions are objects too
Case study
Exercises
Summary
8. Strings and Serialization
Regular expressions
Serializing objects
Case study
Exercises
Summary
9. The Iterator Pattern
Iterators
Comprehensions
Generators
Coroutines
Case study
Exercises
Summary
10. Python Design Patterns I
The observer pattern
The strategy pattern
The state pattern
The singleton pattern
The template pattern
Exercises
Summary
11. Python Design Patterns II
The facade pattern
The flyweight pattern
The command pattern
The abstract factory pattern
The composite pattern
Exercises
Summary
12. Testing Object-oriented Programs
Unit testing
Testing with py.test
Imitating expensive objects
How much testing is enough?
Case study
Exercises
Summary
13. Concurrency
Multiprocessing
Futures
AsyncIO
Case study
Exercises
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →