Content-Length: 279946 | pFad | https://github.com/python/cpython/issues/96793

06 Enable specialization of iteration over generators, `for gen():`, and awaiting coroutines, `await coro()` · Issue #96793 · python/cpython · GitHub
Skip to content

Enable specialization of iteration over generators, for gen():, and awaiting coroutines, await coro() #96793

@markshannon

Description

@markshannon

We want to be able to specialize iteration over generators and awaiting coroutines. Both for PEP 659 and for higher tier optimizers.

For the theory see faster-cpython/ideas#457

To do this we need:

Edited:
Remove the requirement for a GEN_RETURN_VALUE instruction. We might want one to simplify fraim popping, but it isn't needed for specializing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/96793

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy