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
Use a virtual try/except to handle close()/throw()
Don't load StopIteration as a constant
bpo-46841: Don't jump during throw() #31968
Learn more about hiding disruptive comments
The reason will be displayed to describe this comment to others. Learn more.
This adds a lot of bulk to the bytecode. Take this minimal function:
mostly-but-not-quite working THROW branch
Yeah, like I said in the meetings: this about triples the size of the bytecode (all in the cold path, though). If all we care about here is the literal size of the bytecode, then we can pack everything in the exception h