]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-127190: Fix local_setattro() error handling (#127366)
authorVictor Stinner <vstinner@python.org>
Thu, 28 Nov 2024 16:35:48 +0000 (17:35 +0100)
committerGitHub <noreply@github.com>
Thu, 28 Nov 2024 16:35:48 +0000 (17:35 +0100)
commit20657fbdb14d50ca4ec115da0cbef155871d8d33
treea96b23cc66683e5a5c8817e9017055d81eb8df5a
parent49fee592a4fad17781bb4a78f95085d6edbb24d5
gh-127190: Fix local_setattro() error handling (#127366)

Don't make the assumption that the 'name' argument is a string. Use
repr() to format the 'name' argument instead.
Lib/test/test_threading_local.py
Modules/_threadmodule.c