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

gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc#105190
iritkatriel merged 5 commits into
python:mainfrom
iritkatriel:PyErr_Print-doc

Conversation

@iritkatriel

@iritkatrieliritkatriel 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/

@iritkatrieliritkatriel changed the title gh-102778: update documentation of PyErr_PrintEx regarding sys.last_excgh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_excJun 1, 2023

@terryjreedyterryjreedy 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 threadDoc/library/traceback.rst
Comment threadDoc/c-api/exceptions.rst Outdated
@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
MemberAuthor

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.

@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-botbedevere-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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@iritkatriel@bedevere-bot@miss-islington@terryjreedy