◐ Shell
clean mode source ↗

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

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Closed

@markshannon

Description

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 frame popping, but it isn't needed for specializing.

Metadata

Metadata

Assignees

No one assigned

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions