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 28e04d3 commit e5c4922Copy full SHA for e5c4922
1 file changed
Misc/NEWS.d/next/Core_and_Builtins/2026-07-16-02-50-01.gh-issue-153785.fJqPKC.rst
@@ -0,0 +1,4 @@
1
+The default error message is now generated from ``name`` and
2
+``obj`` attributes of :exc:`AttributeError` when both are set and
3
+the exception was constructed with no positional arguments, or with
4
+a single positional argument equal to :attr:`name`. Patch by Bartosz Sławecki.
0 commit comments