Skip to content
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

Better exceptions not working in 3.13? #134

Open
xl0 opened this issue Nov 20, 2024 · 0 comments
Open

Better exceptions not working in 3.13? #134

xl0 opened this issue Nov 20, 2024 · 0 comments

Comments

@xl0
Copy link

xl0 commented Nov 20, 2024

$ python --version
Python 3.13.0
import better_exceptions
better_exceptions.hook()

def f(x):
    return x/0

f(1)
$ python test.py 
Traceback (most recent call last):
  File "/home/xl0/work/projects/lovely-tensors/test.py", line 8, in <module>
    f(1)
  File "/home/xl0/work/projects/lovely-tensors/test.py", line 6, in f
    return x/0
ZeroDivisionError: division by zero

Works with 3.12:

$ python --version
Python 3.12.7
$ python test.py 
Traceback (most recent call last):
  File "/home/xl0/work/projects/lovely-tensors/test.py", line 8, in <module>
    f(1)
    └ <function f at 0x7bbba181d760>
  File "/home/xl0/work/projects/lovely-tensors/test.py", line 6, in f
    return x/0
           └ 1
ZeroDivisionError: division by zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant