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

Implement the new better error message from Python 3.11 #14406

Open
yasirroni opened this issue Apr 17, 2024 · 0 comments
Open

Implement the new better error message from Python 3.11 #14406

yasirroni opened this issue Apr 17, 2024 · 0 comments

Comments

@yasirroni
Copy link

Since Python 3.11, Python get a new verbose and better error message with pointer on the location of the error as explained at this and this like this:

Traceback (most recent call last):
  File "util.py", line 3, in <module>
    c = itertools.counter()
        ^^^^^^^^^^^^^^^^^
AttributeError: module 'itertools' has no attribute 'counter'. Did you mean: 'count'?

This is only available when we run a Python script directly such as py foo.py. Using Python in interactive mode such as py will not get this feature as explained in this SO amswer. IPython also didn't implement this feature yet.

Is it possible for IPython to follow Python to implement the better error message?

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