Skip to content

gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc - #105190

Merged
iritkatriel merged 5 commits into
python:mainfrom
iritkatriel:PyErr_Print-doc
Jun 2, 2023
Merged

iritkatriel merged 5 commits into
python:mainfrom
iritkatriel:PyErr_Print-doc

Conversation

@iritkatriel

@iritkatriel iritkatriel commented Jun 1, 2023 •

Copy link
Copy Markdown
Member

PyErr_PrintEx now populates also sys.last_exc, and the old variables are still populated by deprecated.


📚 Documentation preview 📚: https://cpython-previews--105190.org.readthedocs.build/

@iritkatriel iritkatriel changed the title gh-102778: update documentation of PyErr_PrintEx regarding sys.last_exc Jun 1, 2023
@iritkatriel
iritkatriel requested a review from terryjreedy June 1, 2023 18:23

@terryjreedy terryjreedy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with change.

Comment thread Doc/library/traceback.rst Resolved
Comment thread Doc/c-api/exceptions.rst Resolved
@bedevere-bot

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@iritkatriel

Copy link
Copy Markdown
Member Author

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

@terryjreedy: please review the changes made to this pull request.

@bedevere-bot
bedevere-bot requested a review from terryjreedy June 2, 2023 10:21
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 2, 2023
…print_last() regarding sys.last_exc (pythonGH-105190)

(cherry picked from commit 0dafc78)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
@bedevere-bot

Copy link
Copy Markdown

GH-105246 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Jun 2, 2023
iritkatriel added a commit that referenced this pull request Jun 2, 2023
….print_last() regarding sys.last_exc (GH-105190) (#105246)

gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc (GH-105190)
(cherry picked from commit 0dafc78)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
@iritkatriel
iritkatriel deleted the PyErr_Print-doc branch July 25, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

4 participants