Skip to content

Add PyErr_DisplayException(exc) as replacement for PyErr_Display(typ, exc, tb) #102755

Description

@iritkatriel

Create a single-arg version of PyErr_Display.

PyErr_Display is in the stable ABI but it is not documented. PyErr_DisplayException will therefore need to be in the stable ABI as well (and documented).

Linked PRs

Activity

  1. added 2 commits that reference this issue on Mar 16, 2023
  2. added a commit that references this issue on Mar 16, 2023
  3. added a commit that references this issue on Mar 17, 2023
  4. added 2 commits that reference this issue on Mar 19, 2023
  5. encukou commented on Mar 20, 2023

    @encukou
    Member

    The new function should only be available in the 3.12+ limited API, see: https://devguide.python.org/developer-workflow/c-api/#adding-a-new-definition-to-the-limited-api
    Users who #define Py_LIMITED_API expect that their compiled extensions will work with older versions of Python.

    Also, the PR removed all tests for PyErr_Display. Would it be possible to add at least a small smoke-test back, to ensure it continues to work?

  6. added a commit that references this issue on Mar 20, 2023
  7. added a commit that references this issue on Mar 21, 2023
  8. added 3 commits that reference this issue on Mar 27, 2023
  9. added 3 commits that reference this issue on Apr 11, 2023
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)type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions