Closed
Description
The following PR makes the code, that currently uses PyDict_GetItemWithError()
which returns a borrowing reference and then call Py_INCREF()
on the result to make a strong reference, to use PyDict_GetItemRef()
.
cc @vstinner
Linked PRs
- gh-111789: Use PyDict_GetItemRef() #111790
- gh-111789: Use PyDict_GetItemRef() in Objects/ #111827
- gh-111789: Use PyDict_GetItemRef() in _ctypes #111828
- gh-111789: Use PyDict_GetItemRef() in sqlite #111829
- gh-111789: Simplify bytecodes.c by using PyDict_GetItemRef() #111978
- gh-111789: Simplify import.c by using PyDict_GetItemRef() #111979
- gh-111789: Simplify ceval.c by using PyDict_GetItemRef() #111980
- gh-111789: Use PyDict_GetItemRef() in Modules/_asynciomodule.c #112072
- gh-111789: Use PyDict_GetItemRef() in Modules/_csv.c #112073
- gh-111789: Use PyDict_GetItemRef() in Modules/_elementtree.c #112074
- gh-111789: Use PyDict_GetItemRef() in Modules/_struct.c #112076
- gh-111789: Use PyDict_GetItemRef() in Modules/_threadmodule.c #112077
- gh-111789: Use PyDict_GetItemRef() in Modules/_zoneinfo.c #112078
- gh-111789: Use PyDict_GetItemRef() in Modules/pyexpat.c #112079
- gh-111789: Use PyDict_GetItemRef() in Python/_warnings.c #112080
- gh-111789: Use PyDict_GetItemRef() in Python/bltinmodule.c #112081
- gh-111789: Use PyDict_GetItemRef() in Python/codecs.c #112082
- gh-111789: Use PyDict_GetItemRef() in Python/compile.c #112083
- gh-111789: Use PyDict_GetItemRef() in Python/symtable.c #112084
Metadata
Metadata
Assignees
Labels
No labels