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 — compiler's line number propagation algorithm could be more robust · Issue #103795 · python/cpython

compiler's line number propagation algorithm could be more robust #103795

New issue
Copy link
New issue
Copy link
Closed
Closed
compiler's line number propagation algorithm could be more robust#103795
Copy link
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)

Description

@iritkatriel
iritkatriel
opened on Apr 24, 2023
Issue body actions

The bug in #101517 was due to a raise instruction not being assigned a line number. This happened because the compiler's line number propagation algorithm cannot propagate line numbers to blocks that have two predecessors. The fix for that case was to reorganise the instructions so that this situation is avoided.

We should

  1. Be able to detect when this happens (via assertions in the compiler).
  2. Make the line number propagation algorithm more robust so that this doesn't happen.

See also #103550 (review).

CC @carljm

Reacted by Carl Meyer and sunmy2019

Activity

  1. iritkatriel
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Apr 24, 2023
  2. iritkatriel
    closed this as completedon Sep 17, 2025
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

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — 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.