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

github.com

Tin mới

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

performancePerformance or resource usage

faster-cpython/ideas#457

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

GH-96421: Insert shim frame on entry to interpreter #96319

GH-96793: Change FOR_ITER to not pop the iterator on exhaustion. #96801

GH-96793: Specialize FOR_ITER for generators. #98772

GH-96793: Implement PEP 479 in bytecode. #99006

⌂git
1/1