GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Optimize through symbolic tuples in tier 2 optimizer · Issue #119477 · python/cpython

Optimize through symbolic tuples in tier 2 optimizer #119477

New issue
Copy link
New issue
Copy link
Closed
Closed
Optimize through symbolic tuples in tier 2 optimizer#119477
Copy link
Labels
pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtype-featureA feature request or enhancementA feature request or enhancement

Description

@tekknolagi
tekknolagi
opened on May 23, 2024
Issue body actions

Feature or enhancement

Proposal:

Currently we can reason about code like a + b if a and b are already known to be ints, but the type information disappears as soon as a and b get stored into memory such as tuples. We should be able to reason about

tup = (a, b)
tup[0] + tup[1]

and have the optimizer "see through" the BUILD_TUPLE instruction.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

  • gh-119477: Analyze through BUILD_TUPLE and BINARY_SUBSCR_TUPLE_INT #119478

Activity

  1. tekknolagi
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on May 23, 2024
  2. Eclips4
    changed the title [-]Optimze through symbolic tuples in tier 2 optimizer[/-] [+]Optimize through symbolic tuples in tier 2 optimizer[/+] on May 24, 2024
  3. eendebakpt commented on May 17, 2026

    @eendebakpt
    eendebakpt
    on May 17, 2026
    Contributor
    More actions

    The optimization was implemented via #128940 and #133003. The issue can be closed.

  4. eendebakpt
    added
    pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is provided
    on May 17, 2026
  5. picnixz
    closed this as completedon May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.