-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
traceback.print_last behaving differently across python versions #130250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you remove >>> import sys
>>> sys.last_exc
ZeroDivisionError('division by zero')
>>> del sys.last_exc
>>> traceback.print_last()
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
1/0
~^~
ZeroDivisionError: division by zero The regression was most likely introduced in #102778. cc @iritkatriel |
iritkatriel
added a commit
to iritkatriel/cpython
that referenced
this issue
Feb 19, 2025
iritkatriel
added a commit
that referenced
this issue
Feb 19, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 19, 2025
) (cherry picked from commit 6c982ae) Co-authored-by: Irit Katriel <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 19, 2025
) (cherry picked from commit 6c982ae) Co-authored-by: Irit Katriel <[email protected]>
This was referenced Feb 19, 2025
iritkatriel
added a commit
that referenced
this issue
Feb 19, 2025
iritkatriel
added a commit
that referenced
this issue
Feb 19, 2025
iritkatriel
added a commit
to iritkatriel/cpython
that referenced
this issue
Feb 20, 2025
iritkatriel
added a commit
that referenced
this issue
Feb 20, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 20, 2025
…H-130329) (cherry picked from commit c718c6b) Co-authored-by: Irit Katriel <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 20, 2025
…H-130329) (cherry picked from commit c718c6b) Co-authored-by: Irit Katriel <[email protected]>
iritkatriel
added a commit
that referenced
this issue
Feb 20, 2025
) (#130331) gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329) (cherry picked from commit c718c6b) Co-authored-by: Irit Katriel <[email protected]>
iritkatriel
added a commit
that referenced
this issue
Feb 20, 2025
) (#130330) gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329) (cherry picked from commit c718c6b) Co-authored-by: Irit Katriel <[email protected]>
iritkatriel
added a commit
that referenced
this issue
Feb 20, 2025
…inning with a clean system state (#130342)
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 20, 2025
…re beginning with a clean system state (pythonGH-130342) (cherry picked from commit 048ee2d) Co-authored-by: Irit Katriel <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 20, 2025
…re beginning with a clean system state (pythonGH-130342) (cherry picked from commit 048ee2d) Co-authored-by: Irit Katriel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
traceback.print_last()
correctly prints the latest traceback for python 3.10.16 and 3.11.9, but it printsNoneType: None
for 3.12.9 and 3.13.2See also ipython/ipython#14744, I originally thought it was an ipython issue
CPython versions tested on:
3.10, 3.11, 3.12, 3.13
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: