Use PyDict_GetItemRef() in _elementtree.c (#158809) Replace PyDict_GetItemWithError() with PyDict_GetItemRef(). expat_default_handler() now holds a strong reference to value.