Skip to content

Commit 83c9dad

Browse files
authored
Add a note about NameError/AttributeError suggestions with custom error functions (GH-26794)
1 parent f60b07a commit 83c9dad

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ raised from:
345345
346346
(Contributed by Pablo Galindo in :issue:`38530`.)
347347
348+
.. warning::
349+
Notice this won't work if :c:func:`PyErr_Display` is not called to display the error
350+
which can happen if some other custom error display function is used. This is a common
351+
scenario in some REPLs like IPython.
352+
348353
NameErrors
349354
~~~~~~~~~~
350355
@@ -362,6 +367,12 @@ was raised from:
362367
363368
(Contributed by Pablo Galindo in :issue:`38530`.)
364369
370+
.. warning::
371+
Notice this won't work if :c:func:`PyErr_Display` is not called to display the error,
372+
which can happen if some other custom error display function is used. This is a common
373+
scenario in some REPLs like IPython.
374+
375+
365376
PEP 626: Precise line numbers for debugging and other tools
366377
-----------------------------------------------------------
367378

0 commit comments

Comments
 (0)