GH-98831: Simple input-output stack effects by gvanrossum · Pull Request #99120 · python/cpython · GitHub

github.com

Tin mới

gvanrossum:stack-effect

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

Generate the interpreter #98831

awaiting core review

awaiting core review

Simple input-output stack effects

View reviewed changes

Learn more about hiding disruptive comments

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

Use PEEK instead of POP; STACK_GROW; etc.

Expand ERROR_IF(), to include SHRINK_STACK()

Use a varargs inst() macro

Do a few more instructions

BINARY_OP_INPLACE_ADD_UNICODE

Use STACK_SHRINK as needed

BINARY_OP_ADD_FLOAT, BINARY_OP_ADD_INT

Move PREDICTED() up (bad bug)

View reviewed changes

Bugfix (thanks to Irit)

Merge main (TODO: PyObject *value etc.)

Fix code generated for super instructions

Refactor parser to be more type-correct

View reviewed changes

Fewer jumps in ERROR_IF expansion

Add dummy variables for stack effects

_io and _pyio inconsistenly raise ValueErrors on closed files #98999

gh-98999: Raise ValueError in _pyio on closed buffers #99009

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

GH-96793: Implement PEP 479 in bytecode. #99006