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-35504: Fix segfaults and SystemErrors when deleting certain attrs #11175
bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs #11175
Conversation
LGTM in general. Just few suggestions:
-
It is more common to start the error message from a lower case letter (unless it consists of several sentences). I.e. use "cannot" instead of "Cannot".
-
It may be worth to check that the attribute exists, i.e. reading it does not fail.
-
For underscored attributes, it is better to move tests to test classes specific for the C accelerators. If the pure Python version contains corresponding attributes, deleting them will not raise an AttributeError. If it doe not contain them, deleting them will fail for different reason.
Misc/NEWS.d/next/Core and Builtins/2018-12-15-14-01-45.bpo-35504.JtKczP.rst
Outdated
Show resolved
Hide resolved
Thank you, @serhiy-storchaka, for the comments. |
Thanks @ZackerySpytz for the PR, and @serhiy-storchaka for merging it |
GH-11197 is a backport of this pull request to the 3.7 branch. |
pythonGH-11175) (cherry picked from commit 842acaa) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
pythonGH-11175) (cherry picked from commit 842acaa)
https://bugs.python.org/issue35504