16 Asynchrony and Concurrency

You know the situation: you have to finish that TPS report for your boss, fix a bug that shipped to production, and figure out which of your co-workers borrowed your stapler (it’s Jeff again, isn’t it?), all before day’s end. How will you get it all done? You can’t make copies of yourself—and even if you could, the line for the copier is out the door—so you tackle these tasks with concurrency.

It’s the same in Python. If your program needs to wait on user input, send data over a network, and crunch numbers, all while still updating the user interface, you can handle these tasks concurrently, thus improving your ...

Get Dead Simple Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.