Skip to content

Incorrect error path in _PyPegen_raise_tokenizer_init_error #142724

Description

@AZero13

Bug report

Bug description:

This means the error path is never taken if something goes wrong with tuple.

CPython versions tested on:

3.15, CPython main branch

Operating systems tested on:

macOS

Linked PRs

Activity

  1. added 2 commits that reference this issue on Dec 14, 2025
  2. changed the title [-]value is rechecked in pegen_errors instead of checking tuple[/-] [+]Incorrect error path in `_PyPegen_raise_tokenizer_init_error`[/+] on Dec 14, 2025
  3. added a commit that references this issue on Dec 14, 2025
  4. added 2 commits that reference this issue on Dec 14, 2025
  5. added 2 commits that reference this issue on Dec 14, 2025
  6. picnixz commented on Dec 14, 2025

    @picnixz
    Member

    Thank you for the report & fix!

  7. added a commit that references this issue on Dec 16, 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)topic-parsertype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions