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
Update Element.remove exception message when an element is not found #131938
In xml.etree.ElementTree.Element.remove, the exception message is "list.remove(x): x not in list". It was suggested to change it to "Element.remove(x): x not in list" (#126124 (comment)).
Since we don't like changing exception messages in stable branches, we will only do it in main. Note that this change may not necessarily be trivial as the Python implementation also needs to be updated (out there, a list is used and using list.remove() would then use a different message).
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Activity
gh-131938: Update exception message for `Element.remove()` when an el…