GH-98831: Add `macro` and `op` and their implementation to DSL by gvanrossum · Pull Request #99495 · python/cpython · GitHub

github.com

Tin mới

gvanrossum:macro-ops

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

Convert WITH_EXCEPT_START

Fix lexer to balk at unrecognized characters, e.g. '@'

Fix moved output names; support object pointers in cache

Introduce error() method to print errors

Generate the interpreter #98831

awaiting core review

awaiting core review

GH-98831: Refactor and fix cases generator #99526

Add macro() and op() DSL features

Improve code generation for super/macro instructions

Move super code generation into a helper

Reduce the fiddling with integers in super analysis

Do the super/macro analysis at analysis time

Fix typo in comment

Code review from GH-99526

Check components of super/macro ops

Fix crash when WITH_EXCEPT_START errors out

View reviewed changes

Learn more about hiding disruptive comments

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

Merge branch 'main' into macro-ops

View reviewed changes

Don't use typing.Dict

Kill more "unused" literals

Don't over-use f-strings

Avoid compiler warning on unused variable

Merge remote-tracking branch 'origin/main' into macro-ops

Introduce read_uint16(p) as equivalent to *p