We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b30d676 commit 28e04d3Copy full SHA for 28e04d3
1 file changed
Doc/library/exceptions.rst
@@ -215,9 +215,18 @@ The following exceptions are the exceptions that are usually raised.
215
216
The object that was accessed for the named attribute.
217
218
+ When possible, :attr:`name` and :attr:`obj` are set automatically
219
+ for failed attribute lookups.
220
+
221
.. versionchanged:: 3.10
222
Added the :attr:`name` and :attr:`obj` attributes.
223
224
+ .. versionchanged:: next
225
+ The default error message is now generated from :attr:`name` and
226
+ :attr:`obj` when both attributes are set and the exception was
227
+ constructed with no positional arguments, or with a single positional
228
+ argument equal to :attr:`name`.
229
230
.. exception:: EOFError
231
232
Raised when the :func:`input` function hits an end-of-file condition (EOF)
0 commit comments