This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2020-10-10.07:47:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602316031.88.0.412712857392.issue41991@roundup.psfhosted.org>
In-reply-to
Content
_PyObject_HasAttrId() can return -1, 0 or 1. It returns -1 when cannot create a string (most likely due to MemoryError or UnicodeDecodeError), but returns 0 and silences all exceptions raised when look up the attribute (including MemoryError, KeybordInterruptError and RecursionError). Silencing arbitrary exceptions is bad, and the interface of the function is inconsistent, so it is better to remove it and replace all 5 of its occurrences in 3 files with _PyObject_LookupAttrId(). It is private API, so we can do it without breaking user code.
History
Date User Action Args
2020-10-10 07:47:11serhiy.storchakasetrecipients: + serhiy.storchaka
2020-10-10 07:47:11serhiy.storchakasetmessageid: <1602316031.88.0.412712857392.issue41991@roundup.psfhosted.org>
2020-10-10 07:47:11serhiy.storchakalinkissue41991 messages
2020-10-10 07:47:11serhiy.storchakacreate