diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-29 06:16:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-29 06:16:27 (GMT) |
commit | d514e1439f396d984f4f886e19c47f56e565a7d1 (patch) | |
tree | 6df838d562651896fcc16482f7ed9ac6c51a6fe8 /Doc/tutorial/errors.rst | |
parent | 34e6e14602ae5d03040f8fa38f4a841c9fe66e10 (diff) | |
download | cpython-d514e1439f396d984f4f886e19c47f56e565a7d1.zip cpython-d514e1439f396d984f4f886e19c47f56e565a7d1.tar.gz cpython-d514e1439f396d984f4f886e19c47f56e565a7d1.tar.bz2 |
[3.12] gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386) (GH-107419)
(cherry picked from commit f2d07d3289947d10b065b2bb7670c8fb6b6582f2)
Diffstat (limited to 'Doc/tutorial/errors.rst')
-rw-r--r-- | Doc/tutorial/errors.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 8a207c3..1ec5976 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -154,7 +154,7 @@ exception type. The *except clause* may specify a variable after the exception name. The variable is bound to the exception instance which typically has an ``args`` attribute that stores the arguments. For convenience, builtin exception -types define :meth:`__str__` to print all the arguments without explicitly +types define :meth:`~object.__str__` to print all the arguments without explicitly accessing ``.args``. :: >>> try: @@ -174,7 +174,7 @@ accessing ``.args``. :: x = spam y = eggs -The exception's :meth:`__str__` output is printed as the last part ('detail') +The exception's :meth:`~object.__str__` output is printed as the last part ('detail') of the message for unhandled exceptions. :exc:`BaseException` is the common base class of all exceptions. One of its |