← 返回首页
gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc by iritkatriel · Pull Request #105190 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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 commented Jun 1, 2023
edited by github-actions Bot
Loading

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 changed the title gh-102778: update documentation of PyErr_PrintEx regarding sys.last_exc gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc Jun 1, 2023
iritkatriel requested a review from terryjreedy June 1, 2023 18:23

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Approved with change.

Comment thread Doc/library/traceback.rst Show resolved Hide resolved
Comment thread Doc/c-api/exceptions.rst Outdated Show resolved Hide resolved

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>

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.

Copy link
Copy Markdown

Thanks for making the requested changes!

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

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

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>

Copy link
Copy Markdown

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

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 deleted the PyErr_Print-doc branch July 25, 2023 18:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Footer

© 2026 GitHub, Inc.