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
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=Noneclosed_at=<Date2015-11-23.07:01:10.423>created_at=<Date2015-11-21.17:04:39.640>labels= ['extension-modules', 'type-crash']
title='Crash on deleting Element attribute'updated_at=<Date2015-11-23.07:28:15.898>user='https://github.com/serhiy-storchaka'
Activity
serhiy-storchaka commentedon Nov 21, 2015
Proposed patch fixes the crash.
vadmium commentedon Nov 23, 2015
The patch looks good to me.
This may be a side effect of poor documentation. I guess the documentation at <https://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_setattro\> and/or the referenced functions should mention that the they also delete attributes when the name argument is null.
python-dev commentedon Nov 23, 2015
New changeset 852c9ed9115c by Serhiy Storchaka in branch '3.4':
Issue bpo-25691: Fixed crash on deleting ElementTree.Element attributes.
https://hg.python.org/cpython/rev/852c9ed9115c
New changeset 3a44f06907f1 by Serhiy Storchaka in branch '3.5':
Issue bpo-25691: Fixed crash on deleting ElementTree.Element attributes.
https://hg.python.org/cpython/rev/3a44f06907f1
New changeset 936fcd0ba6b1 by Serhiy Storchaka in branch 'default':
Issue bpo-25691: Fixed crash on deleting ElementTree.Element attributes.
https://hg.python.org/cpython/rev/936fcd0ba6b1
New changeset e3dea2e4f93d by Serhiy Storchaka in branch '2.7':
Issue bpo-25691: Added tests on deleting cElementTree.Element attributes.
https://hg.python.org/cpython/rev/e3dea2e4f93d
serhiy-storchaka commentedon Nov 23, 2015
Thank you for your review Martin. Opened bpo-25701 for documenting.
Interestingly, 2.7 is free from this bug. It has a check for NULL.
larryhastings commentedon Nov 23, 2015
This change didn't make it into 3.5.1. It will be released with 3.5.2. I've already updated the Misc/NEWS entry.