summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-06-20 19:22:40 (GMT)
committerGitHub <noreply@github.com>2021-06-20 19:22:40 (GMT)
commit344487b9561612ab2aef7fac86eab2f0d914443f (patch)
tree161a185ee3680e12dd0e8d379b4985b8862c898b
parent139c5778c26aaf25b51fcfabd88c99ba728beaea (diff)
downloadcpython-344487b9561612ab2aef7fac86eab2f0d914443f.zip
cpython-344487b9561612ab2aef7fac86eab2f0d914443f.tar.gz
cpython-344487b9561612ab2aef7fac86eab2f0d914443f.tar.bz2
Add a note about NameError/AttributeError suggestions with custom error functions (GH-26794) (GH-26796)
(cherry picked from commit 83c9dad8da5fc90b717eef683304aaa49448615a) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
-rw-r--r--Doc/whatsnew/3.10.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 6bd4157..10e6ab7 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
-----------------------------------------------------------