how to remove attribute of a etree Element?

elementtree, lxml, python, xml

Solution

The `.attrib` member of the element object contains the dict of attributes - you can use `.pop("key")` or `del` like you would on any other dict to remove a key-val pair.

Problem

I've Element of etree having some attributes - how can we delete the attribute of perticular etree Element.

Original source