Skip to content

Commit

Permalink
Add a note about NameError/AttributeError suggestions with custom err…
Browse files Browse the repository at this point in the history
…or functions (pythonGH-26794)
  • Loading branch information
pablogsal authored and jdevries3133 committed Jun 19, 2021
1 parent f3dd96a commit d4b87bc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ raised from:
(Contributed by Pablo Galindo in :issue:`38530`.)
.. warning::
Notice this won't work if :c:func:`PyErr_Display` is not called to display the error
which can happen if some other custom error display function is used. This is a common
scenario in some REPLs like IPython.
NameErrors
~~~~~~~~~~
Expand All @@ -362,6 +367,12 @@ was raised from:
(Contributed by Pablo Galindo in :issue:`38530`.)
.. warning::
Notice this won't work if :c:func:`PyErr_Display` is not called to display the error,
which can happen if some other custom error display function is used. This is a common
scenario in some REPLs like IPython.
PEP 626: Precise line numbers for debugging and other tools
-----------------------------------------------------------
Expand Down

0 comments on commit d4b87bc

Please sign in to comment.