]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a note about NameError/AttributeError suggestions with custom error functions...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 20 Jun 2021 19:22:40 +0000 (12:22 -0700)
committerGitHub <noreply@github.com>
Sun, 20 Jun 2021 19:22:40 +0000 (20:22 +0100)
(cherry picked from commit 83c9dad8da5fc90b717eef683304aaa49448615a)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Doc/whatsnew/3.10.rst

index 6bd4157164f5be669eb63863e866ded9a13cd0eb..10e6ab71673982df141b4a65fcc39445f0622212 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
 -----------------------------------------------------------