Message378370
_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. |
|
Date |
User |
Action |
Args |
2020-10-10 07:47:11 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2020-10-10 07:47:11 | serhiy.storchaka | set | messageid: <1602316031.88.0.412712857392.issue41991@roundup.psfhosted.org> |
2020-10-10 07:47:11 | serhiy.storchaka | link | issue41991 messages |
2020-10-10 07:47:11 | serhiy.storchaka | create | |
|