]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-127190: Fix local_setattro() error handling (GH-127366) (#127367)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 1 Dec 2024 06:48:04 +0000 (07:48 +0100)
committerGitHub <noreply@github.com>
Sun, 1 Dec 2024 06:48:04 +0000 (06:48 +0000)
commit5017c81824724f1bd217ac02d5e89874cc4b162c
tree4fd4d9c0bdd3f3c71192b7f56f7c1c689ba1c044
parenta442c87c4cd32e19d9a15266c5687b4c0975b8f6
[3.13] gh-127190: Fix local_setattro() error handling (GH-127366) (#127367)

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