Skip to content

Exceptions raised while parsing _interpreters configs do not name the offending key #148818

Open

Description

@rajkripal

Errors from _interpreters.create on a bad config (wrong type, bad string) don't say which key failed, making multi-field configs hard to debug.

Per @picnixz on #148799, add a PEP 678 note via _PyErr_FormatNote at each error site in Python/interpconfig.c.

Related: gh-148798.

Activity

  1. rajkripal commented on Apr 21, 2026

    @rajkripal
    ContributorAuthor

    I plan to pick this up as a small follow-up PR once #148799 is merged, since the most useful note site is the error branch introduced there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions