]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118331: Handle errors in _PyObject_SetManagedDict (#118334)
authorSam Gross <colesbury@gmail.com>
Mon, 29 Apr 2024 19:49:01 +0000 (15:49 -0400)
committerGitHub <noreply@github.com>
Mon, 29 Apr 2024 19:49:01 +0000 (15:49 -0400)
commit79688b5b0ea761183193ffb0859415f3b02fa44d
treee194d6bfee8402b768741968b3753f526493e02f
parentee3413c1c70725e133b29bb1d245f569a8f64062
gh-118331: Handle errors in _PyObject_SetManagedDict (#118334)

When detaching a dict, the `copy_values` call may fail due to
out-of-memory errors. This can be triggered by test_no_memory in
test_repl.
Include/cpython/object.h
Objects/dictobject.c
Objects/typeobject.c