Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Doc/builtins/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,13 @@ The following exceptions are the exceptions that are usually raised.
or :func:`eval`, or when reading the initial script or standard input
(also interactively).

The :func:`str` of the exception instance returns only the error message.
Details is a tuple whose members are also available as separate attributes.
The :func:`str` of the exception instance returns the error message,
possibly with the filename, line number, or both. *details* is a tuple
whose members are also available as separate attributes.

.. attribute:: msg

The error message.

.. attribute:: filename

Expand Down
Loading