Skip to content

Access Python Exception object #1614

@espositofulvio

Description

@espositofulvio

Issue description

When catching a Python exception from C++, there is no way to access the exception data. Python exceptions are converted to error_already_set, but its members are private and there's no way to access the actual exception data in case the value member is set as for StopIteration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions