mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Add a note about NameError/AttributeError suggestions with custom error functions (GH-26794)
This commit is contained in:
parent
f60b07ab6c
commit
83c9dad8da
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
-----------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue