-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
traceback.print_last behaving differently across python versions #130250
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 <1055913+iritkatriel@users.noreply.github.com>
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 <1055913+iritkatriel@users.noreply.github.com>
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
iritkatriel
added a commit
that referenced
this issue
Feb 20, 2025
iritkatriel
added a commit
that referenced
this issue
Feb 20, 2025
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 <1055913+iritkatriel@users.noreply.github.com>
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 <1055913+iritkatriel@users.noreply.github.com>
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: