8000 Add a note about NameError/AttributeError suggestions with custom err… · python/cpython@344487b · GitHub
[go: up one dir, main page]

Skip to content

Commit 344487b

Browse files
Add a note about NameError/AttributeError suggestions with custom error functions (GH-26794) (GH-26796)
(cherry picked from commit 83c9dad) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent 139c577 commit 344487b

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)
0