Skip to main content Brad's PyNotes

Posts on Python 3.3

  1. PEP 380 Yield From

    TL;DR

    PEP 380 introduced yield from syntax for delegating to subgenerators, simplifying generator composition and enabling generators to return values.

    Interesting!

    yield from was the foundation that made async/await possible - it established the delegation pattern that coroutines needed!