]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128974: Fix `UnicodeError.__str__` when custom attributes have side-effects (...
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sat, 1 Mar 2025 11:01:20 +0000 (12:01 +0100)
committerGitHub <noreply@github.com>
Sat, 1 Mar 2025 11:01:20 +0000 (12:01 +0100)
commitddc27f9c385f57db1c227b655ec84dcf097a8976
tree1d9362fc6d17c416cd31f16bcb649f0455e6681b
parent75f38af7810af1c3ca567d6224a975f85aef970f
gh-128974: Fix `UnicodeError.__str__` when custom attributes have side-effects (#128975)

Fix some crashes when (custom) attributes of `UnicodeError` objects implement `object.__str__` with side-effects.
Lib/test/test_exceptions.py
Misc/NEWS.d/next/Core_and_Builtins/2025-01-18-10-50-04.gh-issue-128974.KltI-A.rst [new file with mode: 0644]
Objects/exceptions.c