Skip to content

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

@rajkripal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions