diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-24 18:33:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 18:33:39 (GMT) |
commit | 6aee5edb84cfa23f430091270a4118e51894c767 (patch) | |
tree | 14d49722bc9e1d20a7a7d1462872965ced66ea4b /Python/Python-ast.c | |
parent | 9769b7ae064a0546a98cbcbec2561dbaba20cd23 (diff) | |
download | cpython-6aee5edb84cfa23f430091270a4118e51894c767.zip cpython-6aee5edb84cfa23f430091270a4118e51894c767.tar.gz cpython-6aee5edb84cfa23f430091270a4118e51894c767.tar.bz2 |
[3.13] gh-120860: Fix a few bugs in `type_setattro` error paths. (GH-120861) (#120963)
Moves the logic to update the type's dictionary to its own function in order
to make the lock scoping more clear.
Also, ensure that `name` is decref'd on the error path.
(cherry picked from commit dee63cb35971b87a09ddda5d6f29cd941f570720)
Co-authored-by: Sam Gross <colesbury@gmail.com>
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions