GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add PyErr_DisplayException(exc) as replacement for PyErr_Display(typ, exc, tb) · Issue #102755 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
#102849
#102756
Closed
Add PyErr_DisplayException(exc) as replacement for PyErr_Display(typ, exc, tb)#102755
#102849
#102756
Copy link
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

Description

@iritkatriel
iritkatriel
opened on Mar 16, 2023
Issue body actions

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

  • gh-102755: Add PyErr_DisplayException(exc) #102756
  • gh-102755: fix refleak #102826
  • gh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests cover PyErr_Display as well #102849

Activity

  1. iritkatriel
    added
    type-featureA feature request or enhancementA feature request or enhancement
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Mar 16, 2023
  2. iritkatriel
    added 2 commits that reference this issue on Mar 16, 2023

    pythongh-102755: Add PyErr_DisplayException(exc)

    368947d

    pythongh-102755: Add PyErr_DisplayException(exc)

    cd19310
  3. iritkatriel
    closed this as completedin #102756on Mar 16, 2023
  4. iritkatriel
    added a commit that references this issue on Mar 16, 2023

    gh-102755: Add PyErr_DisplayException(exc) (#102756)

    3f9285a
  5. carljm
    added a commit that references this issue on Mar 17, 2023

    Merge branch 'main' into inlinecomp2

    1a8f4a0
  6. iritkatriel
    added 2 commits that reference this issue on Mar 19, 2023

    pythongh-102755: fix refleak

    db0c66d

    gh-102755: fix refleak (#102826)

    ccb5af7
  7. encukou commented on Mar 20, 2023

    @encukou
    encukou
    on Mar 20, 2023
    Member
    More actions

    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?

    Reacted by Irit Katriel and Erlend E. Aasland
  8. encukou
    reopened this on Mar 20, 2023
  9. iritkatriel
    added a commit that references this issue on Mar 20, 2023

    pythongh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests co…

    5658e7e
  10. encukou
    closed this as completedin #102849on Mar 21, 2023
  11. encukou
    added a commit that references this issue on Mar 21, 2023

    gh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests cover Py…

    5c471f3
  12. Fidget-Spinner
    added 3 commits that reference this issue on Mar 27, 2023

    pythongh-102755: Add PyErr_DisplayException(exc) (python#102756)

    dd639e7

    pythongh-102755: fix refleak (python#102826)

    2cfaac1

    pythongh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests co…

    45e8c3e
  13. warsaw
    added 3 commits that reference this issue on Apr 11, 2023

    pythongh-102755: Add PyErr_DisplayException(exc) (python#102756)

    9cd991f

    pythongh-102755: fix refleak (python#102826)

    32b3e9d

    pythongh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests co…

    34faf03
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)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.