diff options
author | mpage <mpage@meta.com> | 2024-04-29 16:56:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 16:56:51 (GMT) |
commit | 43fa76638fc75958b592096b6830c15f0afa1a73 (patch) | |
tree | c65c40432a3785354cef4633c4e8fa87f7e2029d /.github | |
parent | 444ac0b7a64ff6b6caba9c2731bd33151ce18ad1 (diff) | |
download | cpython-43fa76638fc75958b592096b6830c15f0afa1a73.zip cpython-43fa76638fc75958b592096b6830c15f0afa1a73.tar.gz cpython-43fa76638fc75958b592096b6830c15f0afa1a73.tar.bz2 |
gh-118331: Don't raise an error if tuple allocation fails when clearing weakrefs (#118338)
It's not safe to raise an exception in `PyObject_ClearWeakRefs()` if one
is not already set, since it may be called by `_Py_Dealloc()`, which
requires that the active exception does not change.
Additionally, make sure we clear the weakrefs even when tuple allocation
fails.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions