bpo-46409: Make generators in bytecode by markshannon · Pull Request #30633 · python/cpython · GitHub

github.com

Tin mới

faster-cpython:make-gen-in-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

Add new instruction to make generator or coroutine from current frame.

Set line number for RETURN_GENERATOR instruction.

Remove unused code.

Rename YIELD_FROM_LOOP to JUMP_NO_INTERRUPT: describe what it does, n…

awaiting core review

awaiting core review

Document new bytecodes.

Merge branch 'main' into make-gen-in-bytecode

Fix whitespace in opcode.py

🔨 test-with-buildbots

🔨 test-with-buildbots

Trim frame and generator by word each.

Minor refactor of frame.c

Update test.test_sys to account for smaller frames.

Skip clearing of old frame when returning a generator.

Treat generator functions as normal functions when evaluating and spe…

Attempt to streamline eval-breaker checks a bit.

View reviewed changes

Learn more about hiding disruptive comments

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

Revert change in test.

Remove unused macro.

Add some clarifications and explanations.

Name new instructions in news item.

bpo-46470: remove unused branch from typing._remove_dups_flatten #30780

gh-79940: add introspection API for asynchronous generators #11590

With asynchronous exception raised, thread.is_alive() unexpectedly blocks in Python 3.11 with coverage coveragepy/coveragepy#1626

The explanation of cr_suspended should be added to Types and members #142992

gi_suspended/cr_suspended is not specified as a change #142994

[BUG] inspect.get*state() does not work for compiled objects on Python ≥3.11 cython/cython#7448

types._GeneratorWrapper is no longer consistent with types.GeneratorType/types.CoroutineType #143552