`PyDict_Pop()` can be used in two cases: * If the `PyDict_Get*` call is followed by the `PyDict_Del*` call. * If the `PyDict_Del*` call is followed by the code that handles KeyError. In both cases the use of `PyDict_Pop()` can make the code clearer. <!-- gh-linked-prs --> ### Linked PRs * gh-116438 <!-- /gh-linked-prs -->