While the documentation about deferreds is good, it is still not enough for many. In this interactive tutorial, I will cover both the basics of deferreds and many non-trivial use-cases, with discussion of various approaches. Common mistakes, gotchas and other issues will be explained, as well as good idioms and techniques to use deferreds without pain. Deferreds bring asynchronous APIs the clarity and programming power that is sometimes lost when using event-based programming. They are an idea taken from many other programming languages, and made into a Pythonic solution If you are using Twisted, or would like to use Twisted, this tutorial can help you with one of the most subtle issues inherent in its APIs - Deferreds.
PyCon is an activity of the Python Software Foundation, a 501c3 non-profit organization. To support future conferences, please donate to the Foundation at www.python.org/psf/donations . Video and audio material from PyCon are licensed under the Creative Commons CC-BY-NC-SA license . This means you can incorporate excerpts or entire recordings in your own non-commercial projects, as long as you credit the speaker and you CC-license the finished project.