GH-98831: Get rid of super(), just use macro() by gvanrossum · Pull Request #100095 · python/cpython · GitHub

github.com

Tin mới

gvanrossum:super-is-macro

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

Make BINARY_OP_INPLACE_ADD_UNICODE a legit super instruction

COMPARE_OP_FLOAT_JUMP

COMPARE_OP_INT_JUMP

COMPARE_OP_STR_JUMP

Support typed stack effects

Refactor common code of analyze_{super,macro}

Reverse temporary variable numbering

STORE_ATTR_INSTANCE_VALUE

STORE_ATTR_WITH_HINT

STORE_ATTR_SLOT, and complete the store_attr family

Complete the store_subscr family: STORE_SUBSCR{,DICT,LIST_INT}

INTERPRETER_EXIT (a bit weird, ends in return)

GET_AITER (had to restructure it some)

Typo in TODO comment

Emit PREDICT() macros right before DISPATCH()

LIST_APPEND (a bit unhappy with it)

SET_ADD (also a bit unhappy with it)

Super can be reformulated as macro with a special op

Rip out support for 'super' from the generator

awaiting core review

netlify Bot commented Dec 8, 2022 • edited Loading Uh oh! There was an error while loading. Please reload this page.
netlify Bot commented Dec 8, 2022 • edited Loading Uh oh! There was an error while loading. Please reload this page.

netlify Bot commented Dec 8, 2022 • edited Loading Uh oh! There was an error while loading. Please reload this page.

There was an error while loading. Please reload this page.

Remove special syntax for super(X) = A + B in favor of macro(X) = A + JOIN + B faster-cpython/ideas#508