[issue12984] XML NamedNodeMap ( attribName in NamedNodeMap fails )

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your report. The issue has been address in Python 3.x. NamedNodeMap properly implements __contains__(). Python 2.7 is in feature freeze mode which means we can't backport the function. -- nosy: +christian.heimes resolution: - fixed

[issue12984] XML NamedNodeMap ( attribName in NamedNodeMap fails )

2011-09-14 Thread Matthew Newcomb
New submission from Matthew Newcomb spolem...@gmail.com: I was cleaning up some old code to make it pep8 compliant and came across this bug. Switching from 'has_key' to 'in' does not work with a xml.dom.minidom.NamedNodeMap. An easy solution appears to be to add a '__contains__' method to