From: Pablo Galindo Date: Fri, 18 Jun 2021 22:08:38 +0000 (+0100) Subject: Add a note about NameError/AttributeError suggestions with custom error functions... X-Git-Tag: v3.11.0a1~835 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83c9dad8da5fc90b717eef683304aaa49448615a;p=thirdparty%2FPython%2Fcpython.git Add a note about NameError/AttributeError suggestions with custom error functions (GH-26794) --- diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 9b9dd31a3bea..c45925756ffa 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -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 -----------------------------------------------------------