Tin mới
GitHub CopilotWrite better code with AI
GitHub Copilot appDirect agents from issue to merge
CodespacesInstant dev environments
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
GitHub SponsorsFund open source developers
Copilot for BusinessEnterprise-grade AI features
Premium SupportEnterprise-grade 24/7 support
List comprehensions now have access to the enclosing class scope #104374
: Remove access to class scopes for inlined comprehens…
Learn more about hiding disruptive comments
The reason will be displayed to describe this comment to others. Learn more.
Update Lib/test/test_listcomps.py
Better tests, copied from Carl's PR
Merge remote-tracking branch 'upstream/main' into classcomp2
PEP 709, for the third and (hopefully) final time python/steering-council#192
fix definition of 'in a class block'
PEP 709: Crash with lambda + nested scope #104602
Merge remote-tracking branch 'upstream/main' into classcomp2
gh-104602: ensure all cellvars are known up front #104603
PEP 709 behavior change around mangling #104604
gh-104374: don't inline comprehensions in non-function scopes #104519
gh-109118: Allow lambdas in annotation scopes in classes #118019
gh-109118: Make comprehensions work within annotation scopes, but without inlining #118160