GH-96793: Implement PEP 479 in bytecode. by markshannon · Pull Request #99006 · python/cpython · GitHub

github.com

Tin mới

faster-cpython:pep-479-bytecode

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

lot of bulk to the bytecode

In order to specialize iteration over generators and send to coroutines we need to remove the pre- and post checks from the C wrappers. The pre-checks are largely eliminated by the the compiler and specialization. The po

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

Handle converting StopIteration to RuntimeError in bytecode.

Wrap async generators and generator expressions in handler for Stop[A…

Add custom instruction for converting StopIteration into RuntimeError.

Remove LOAD_ERROR instruction.

Document new instruction

awaiting core review

awaiting core review

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Merge branch 'main' into pep-479-bytecode

View reviewed changes

GH-98831: Simple input-output stack effects #99120

Generator finalization is slower in 3.11 vs 3.10 #100762

Implement PEP 479 in bytecode tekknolagi/skybison#507