This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iter
Recipients fdrake, iter, r.david.murray, serhiy.storchaka, terry.reedy
Date 2018-06-07.03:15:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528341326.06.0.592728768989.issue33274@psf.upfronthosting.co.za>
In-reply-to
Content
I added a test case and a News entry per serhiy.storchaka's request.

https://github.com/python/cpython/pull/7465

I agree with fdrake's concerns about DOM's usefulness. DOM is not very Pythonic. I note that as long as Python has a DOM implementation, it follows the spec fairly closely. Element.removeAttributeNode() is the exception. All other minidom mutators (unpythonically) return the values that the standard requires, including the sister mutator setAttributeNode: 

Node.insertBefore()
Node.appendChild()
Node.replaceChild()
Node.removeChild()

NamedNodeMap.removeNamedItem()
NamedNodeMap.removeNamedItemNS()
NamedNodeMap.setNamedItem()

Element.setAttributeNode()

Document.removeChild()
Document.renameNode()
History
Date User Action Args
2018-06-07 03:15:26itersetrecipients: + iter, fdrake, terry.reedy, r.david.murray, serhiy.storchaka
2018-06-07 03:15:26itersetmessageid: <1528341326.06.0.592728768989.issue33274@psf.upfronthosting.co.za>
2018-06-07 03:15:25iterlinkissue33274 messages
2018-06-07 03:15:25itercreate