Skip to Content
Python 3 Object-Oriented Programming - Second Edition
book

Python 3 Object-Oriented Programming - Second Edition

by Dusty Phillips
August 2015
Beginner to intermediate
460 pages
11h 20m
English
Packt Publishing
Content preview from Python 3 Object-Oriented Programming - Second Edition

Summary

This chapter ends our exploration of object-oriented programming with a topic that isn't very object-oriented. Concurrency is a difficult problem and we've only scratched the surface. While the underlying OS abstractions of processes and threads do not provide an API that is remotely object-oriented, Python offers some really good object-oriented abstractions around them. The threading and multiprocessing packages both provide an object-oriented interface to the underlying mechanics. Futures are able to encapsulate a lot of the messy details into a single object. AsyncIO uses coroutine objects to make our code read as though it runs synchronously, while hiding ugly and complicated implementation details behind a very simple loop abstraction. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python 3 Object-Oriented Programming - Third Edition

Python 3 Object-Oriented Programming - Third Edition

Dusty Phillips

Publisher Resources

ISBN: 9781784398781Supplemental Content