gh-97933: inline list/dict/set comprehensions by carljm · Pull Request #101441 · python/cpython · GitHub

github.com

Tin mới

carljm:inlinecomp2

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

Inline dict/list/set comprehensions in the compiler for better performance #97933

: inline sync list/dict/set comprehensions

gh-97933: add opcode for more efficient comprehension execution #101310

simplify cell handling code slightly

enable inlining async comprehensions also

View reviewed changes

Merge branch 'main' into inlinecomp2

fix outer-cell, inner-local case

fix restoring NULL (unbound outer name) followed by load

emit 1 x SWAP N+1 instead of N x SWAP 2

remove stray dis.dis() call

fix compiler warning about Py_ssize_t -> int conversion

Merge branch 'main' into inlinecomp2

View reviewed changes

Learn more about hiding disruptive comments

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

Apply suggestions from code review

Merge branch 'main' into inlinecomp2

🔨 test-with-refleak-buildbots

View reviewed changes

Apply suggestions from code review

Apply suggestions from code review

Merge branch 'main' into inlinecomp2

🔨 test-with-buildbots

Merge branch 'main' into fixsendfamily

Merge branch 'main' into supermon

Merge branch 'main' into fixloadsuperspec

Comprehension inlining: Bug if comprehension contains a lambda #104357

gh-104374: don't inline comprehensions in non-function scopes #104519

Improve super() error message and document zero-arg super() usage inside nested functions and generator expressions. #113212

Redundant variable newfree in function analyze_block() #100321