[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2018-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 398bd27967690f2c1a8cbf8d47a5613edd9cfb2a by Serhiy Storchaka in branch 'master': bpo-32787: Better error handling in ctypes. (#3727) https://github.com/python/cpython/commit/398bd27967690f2c1a8cbf8d47a5613edd9cfb2a -- __

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2018-05-14 Thread STINNER Victor
STINNER Victor added the comment: It seems like this issue caused a regression in _warnings: please see bpo-33509. -- nosy: +vstinner ___ Python tracker ___ ___

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2018-02-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Better error handling in ctypes, Better error handling in sqlite3 ___ Python tracker ___ _

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2018-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4d9aec022063dcfc4cf40ae46b1c4a968297e664 by Serhiy Storchaka in branch 'master': bpo-31572: Get rid of PyObject_HasAttr() and _PyObject_HasAttrId() in the _io module. (#3726) https://github.com/python/cpython/commit/4d9aec022063dcfc4cf40ae46b1

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-11-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bba2239c17a404fc99524bfbf8126c9b3b7fb343 by Serhiy Storchaka in branch 'master': bpo-31572: Get rid of _PyObject_HasAttrId() in the ASDL parser. (#3725) https://github.com/python/cpython/commit/bba2239c17a404fc99524bfbf8126c9b3b7fb343 ---

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-11-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 60c3d3551a96febac7b6016fb44605643842c686 by Serhiy Storchaka in branch 'master': bpo-31572: Get rid of _PyObject_HasAttrId() in dict and OrderedDict. (#3728) https://github.com/python/cpython/commit/60c3d3551a96febac7b6016fb44605643842c686 --

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-11-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1707e4020fa8dca8e6a3ac4f9da105b54d597b66 by Serhiy Storchaka in branch 'master': bpo-31572: Silence only AttributeError when get the __copy__ attribute in itertools.tee(). (#3724) https://github.com/python/cpython/commit/1707e4020fa8dca8e6a3ac

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-11-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d4f8480dfe89447587550a85b61d4e9faf827e98 by Serhiy Storchaka in branch 'master': bpo-31572: Don't silence unexpected errors in the _warnings module. (#3731) https://github.com/python/cpython/commit/d4f8480dfe89447587550a85b61d4e9faf827e98 ---

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 77af0a3bcab666a356eea2927a8031a7578d60d2 by Serhiy Storchaka in branch '3.6': [3.6] bpo-31572: Get rid of using _PyObject_HasAttrId() in pickle. (GH-3729). (#4081) https://github.com/python/cpython/commit/77af0a3bcab666a356eea2927a8031a7578d60

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4051 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 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 e

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The only solution of this problem is getting rid of PyObject_HasAttr() if > favor of PyObject_GetAttr(). I don't understand why. Why not fix PyObject_HasAttr() like hasattr() was? -- nosy: +pitrou ___ Python tra

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 04e36af9b88cd5e80fc818e51d46f07252a2ff3f by Serhiy Storchaka in branch 'master': bpo-31572: Get rid of using _PyObject_HasAttrId() in pickle. (#3729) https://github.com/python/cpython/commit/04e36af9b88cd5e80fc818e51d46f07252a2ff3f --

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3717 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3715 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3714 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3713 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3712 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3711 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3710 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3709 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-09-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Initially hasattr() suppressed all raised exceptions. In issue2196 hasattr() was changed to suppress only Exception exceptions and propagate exceptions like SystemExit and KeyboardInterrupt. In issue9666 hasattr() was changed to suppress only AttributeErro