]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a note about NameError/AttributeError suggestions with custom error functions...
authorPablo Galindo <Pablogsal@gmail.com>
Fri, 18 Jun 2021 22:08:38 +0000 (23:08 +0100)
committerGitHub <noreply@github.com>
Fri, 18 Jun 2021 22:08:38 +0000 (23:08 +0100)
Doc/whatsnew/3.10.rst

index 9b9dd31a3beabf0e0bb5bf43eeb654d76568f0db..c45925756ffa86d0f085f4c1f0584e3ce0a53843 100644 (file)
@@ -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
 ~~~~~~~~~~
 
@@ -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
 -----------------------------------------------------------