➜

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 pitrou, serhiy.storchaka
Date 2017-10-23.09:29:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
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.
History
Date User Action Args
2017-10-23 09:29:42serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou
2017-10-23 09:29:42serhiy.storchakasetmessageid: <[email protected]>
2017-10-23 09:29:42serhiy.storchakalinkissue31572 messages
2017-10-23 09:29:42serhiy.storchakacreate