]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-127190: Fix local_setattro() error handling (GH-127366) (#127368)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 28 Nov 2024 17:32:50 +0000 (18:32 +0100)
committerGitHub <noreply@github.com>
Thu, 28 Nov 2024 17:32:50 +0000 (17:32 +0000)
commit7d175caf212565b3b89cf3c537c38adab52306a5
tree9a13b423b464261df7edd1908a3388d9ac0c1c0c
parentf4c9f391650ebca213905c1308f87abac670033e
[3.12] gh-127190: Fix local_setattro() error handling (GH-127366) (#127368)

gh-127190: Fix local_setattro() error handling (GH-127366)

Don't make the assumption that the 'name' argument is a string. Use
repr() to format the 'name' argument instead.
(cherry picked from commit 20657fbdb14d50ca4ec115da0cbef155871d8d33)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_threading_local.py
Modules/_threadmodule.c