[Python-checkins] Add a note about NameError/AttributeError suggestions with custom error functions (GH-26794) (GH-26796)
pablogsal
webhook-mailer at python.org
Sun Jun 20 15:22:50 EDT 2021
https://github.com/python/cpython/commit/344487b9561612ab2aef7fac86eab2f0d914443f
commit: 344487b9561612ab2aef7fac86eab2f0d914443f
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-06-20T20:22:40+01:00
summary:
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 at gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal at gmail.com>
files:
M Doc/whatsnew/3.10.rst
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 6bd4157164f5be..10e6ab71673982 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
-----------------------------------------------------------
More information about the Python-checkins
mailing list