[issue41991] Remove _PyObject_HasAttrId

Serhiy Storchaka report at bugs.python.org
Sat Oct 10 03:54:47 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

This function was kept after previous clean because all its usages was in the code which silences all exceptions in any case, so using _PyObject_HasAttrId did not do additional harm. But now it is used also in the new code in Objects/unionobject.c. It is safer to not only fix Objects/unionobject.c, but remove _PyObject_HasAttrId at all.

----------
nosy: +pablogsal, vstinner

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41991>
_______________________________________


More information about the Python-bugs-list mailing list