-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-41991: Remove _PyObject_HasAttrId #22629
bpo-41991: Remove _PyObject_HasAttrId #22629
Conversation
It can silence arbitrary exceptions.
6562ceb
to
9307e7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks, Serhiy for cleaning up this !
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
It can silence arbitrary exceptions.
_PyObject_HasAttrId() has been removed in python/cpython#22629
It can silence arbitrary exceptions.
_PyObject_HasAttrId() has been removed in python/cpython#22629
* Fix mypyc failing to compile on CPython 3.10.0a6 _PyObject_HasAttrId() has been removed in python/cpython#22629 * Keep using _PyObject_HasAttrId when python version is too old We could potentionally already use _PyObject_LookupAttrId starting with python 3.7 instead of 3.10. I'm not sure if we should switch as soon or as late as possible. Alternatively we could also try backporting _PyObject_LookupAttrId to <3.7.
It can silence arbitrary exceptions.
https://bugs.python.org/issue41991