You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'hasattr' fix to suppress only AttributeError #53875
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/benjaminp'closed_at=<Date2010-08-24.03:27:52.630>created_at=<Date2010-08-24.02:56:06.335>labels= ['type-bug', 'library', 'docs']
title="'hasattr' fix to suppress only AttributeError"updated_at=<Date2010-09-28.17:15:20.674>user='https://bugs.python.org/YurySelivanov'
Activity
YurySelivanov commentedon Aug 24, 2010
As discussed on python-dev mailing list (http://mail.python.org/pipermail/python-dev/2010-August/103178.html), 'hasattr' default behaviour should be changed to suppress only AttributeError exceptions. Other should pass through.
The fix, however, shouldn't change behaviour of existing C API, functions PyObject_HasAttr and PyObject_HasAttrString in particular.
I'm targeting this issue on Python 3.2 version, but probably it may be introduced in the next Python 3.1 maintenance release.
benjaminp commentedon Aug 24, 2010
Fixed in r84294. I will not backport to 3.1. Thanks for the contribution!
pythongh-113391: fix outdated PyObject_HasAttr sphinx docs
gh-113391: fix outdated PyObject_HasAttr docs (#113420)
pythongh-113391: fix outdated PyObject_HasAttr docs (python#113420)
pythongh-113391: fix outdated PyObject_HasAttr docs (python#113420)
pythongh-113391: fix outdated PyObject_HasAttr docs (python#113420)