Message304787
hasattr() can return True, False, or raise an exception. But PyObject_HasAttr() just returns an integer: 0 for False, not 0 for True. There is no way to return an error, and existing code doesn't expect that PyObject_HasAttr() returns an error. Leaking an exception from PyObject_HasAttr() will break existing code. |
|
Date |
User |
Action |
Args |
2017-10-23 09:29:42 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou |
2017-10-23 09:29:42 | serhiy.storchaka | set | messageid: <1508750982.25.0.213398074469.issue31572@psf.upfronthosting.co.za> |
2017-10-23 09:29:42 | serhiy.storchaka | link | issue31572 messages |
2017-10-23 09:29:42 | serhiy.storchaka | create | |
|