FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Ensure the position information in AST nodes created by the parser is always consistent · Issue #93351 · python/cpython · GitHub

Repository navigation

Ensure the position information in AST nodes created by the parser is always consistent #93351

Closed

Description

If we create an AST node with invalid position information, the error is reported in the compiler when it validates the line numbers and end line numbers, which is too far away and debugging this can be quite challenging. To improve the debugging experience, ensure that the parser cannot create an AST node with invalid position information.

Activity

  1. added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    3.11only security fixes
    3.12only security fixes
    on May 30, 2022
  2. added a commit that references this issue on May 30, 2022
  3. added 2 commits that reference this issue on May 30, 2022
  4. hauntsaninja commented on Jul 23, 2022

    Contributor

    This broke a project of mine https://github.com/hauntsaninja/pyp that does some AST tricks. Worth adding a news entry (possibly to Python 3.11 What's New as well)?

  5. pablogsal commented on Jul 23, 2022

    MemberAuthor

    I will add a news entry for this

  6. added 2 commits that reference this issue on Jul 23, 2022
  7. added a commit that references this issue on Jul 26, 2022
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

    3.10 (EOL)end of life3.11only security fixes3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL