mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386)
This commit is contained in:
parent
413ba8943e
commit
f2d07d3289
52 changed files with 125 additions and 139 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue