SIGN IN SIGN UP

gh-106030: Miscellaneous fixes in Python/suggestions.c (GH-106031)

* PyDict_GetItem() and PyObject_HasAttr() suppress arbitrary errors and
  should not be used.
* PyUnicode_CompareWithASCIIString() only works if the second argument
  is ASCII string.
* Refleak in get_suggestions_for_name_error.
* Use of borrowed pointer after possible freeing (self).
* Add some missing error checks.
S
Serhiy Storchaka committed
c8c162ef5294cddb7ac75fe93ab918e5661c68ee
Parent: 9499b0f
Committed by GitHub <noreply@github.com> on 6/23/2023, 4:53:27 PM