diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-04-20 12:43:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 12:43:10 (GMT) |
commit | f92bcfe6dea7d52dcc7077585d8818e8a0209604 (patch) | |
tree | 25831066371287d6dabe918eb2c27f6687726181 /Doc/library/traceback.rst | |
parent | aaeea78b0f8f4c8dfab5cd4eb6fb4c5fe1ee21e2 (diff) | |
download | cpython-f92bcfe6dea7d52dcc7077585d8818e8a0209604.zip cpython-f92bcfe6dea7d52dcc7077585d8818e8a0209604.tar.gz cpython-f92bcfe6dea7d52dcc7077585d8818e8a0209604.tar.bz2 |
gh-89770: [PEP-678] add exception notes to tutorial (GH-30441)
Diffstat (limited to 'Doc/library/traceback.rst')
-rw-r--r-- | Doc/library/traceback.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst index df4a38c..796309c 100644 --- a/Doc/library/traceback.rst +++ b/Doc/library/traceback.rst @@ -236,6 +236,14 @@ capture data for later printing in a lightweight fashion. The ``__suppress_context__`` value from the original exception. + .. attribute:: __notes__ + + The ``__notes__`` value from the original exception, or ``None`` + if the exception does not have any notes. If it is not ``None`` + is it formatted in the traceback after the exception string. + + .. versionadded:: 3.11 + .. attribute:: stack A :class:`StackSummary` representing the traceback. |