Mailing List Archive

Add a note about NameError/AttributeError suggestions with custom error functions (GH-26794)
https://github.com/python/cpython/commit/83c9dad8da5fc90b717eef683304aaa49448615a
commit: 83c9dad8da5fc90b717eef683304aaa49448615a
branch: main
author: Pablo Galindo <Pablogsal@gmail.com>
committer: pablogsal <Pablogsal@gmail.com>
date: 2021-06-18T23:08:38+01:00
summary:

Add a note about NameError/AttributeError suggestions with custom error functions (GH-26794)

files:
M Doc/whatsnew/3.10.rst

diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 9b9dd31a3beab..c45925756ffa8 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
-----------------------------------------------------------


_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins