bpo-42006: Stop using PyDict_GetItem, PyDict_GetItemString and _PyDict_GetItemId. (GH-22648)
These functions are considered not safe because they suppress all internal errors and can return wrong result. PyDict_GetItemString and _PyDict_GetItemId can also silence current exception in rare cases. Remove no longer used _PyDict_GetItemId. Add _PyDict_ContainsId and rename _PyDict_Contains into _PyDict_Contains_KnownHash.
S
Serhiy Storchaka committed
fb5db7ec58624cab0797b4050735be865d380823
Parent: 96a9eed
Committed by GitHub <noreply@github.com>
on 10/26/2020, 6:43:39 AM