EuroPython 2016

async/await in Python 3.5 and why it is awesome

Speaker(s) Yury Selivanov

The talk will start with a brief coverage of the story of asynchronous programming in Python – Twisted, Tornado, Stackless Python & greenlets, eventlet, Tornado, asyncio & curio. We’ve come a really long road, and it’s important to understand how we ended up with async/await.

Then I’ll go over asyncio and curio, showing async/await by example, explaining that in reality it’s a very easy to use language feature. You don’t need to know all the details to be able to successfully use the new syntax, and even build new frameworks on top of it.

I’ll then explain the async/await machinery in CPython, starting with generators and ‘yield’ expression, showing what is ‘yield from’ and finally, demonstrating how async/await is implemented in CPython. This will ensure that those who want to invent some new crazy ways of using async/await will have a starting point!

I’ll end the talk with a story of how I came up with the idea. How I shared it with Guido van Rossum, Victor Stinner, and Andrew Svetlow. How the first version of the PEP was born, and how we managed to push it to Python 3.5 in under two months period. The goal is to make people understand that it’s possible to change your programming language – in fact, Python, as any other programming language, wants new features and capabilities to be relevant.

in on Thursday 21 July at 12:00 See schedule

Do you have some questions on this talk?

New comment