New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xml.dom.minidom.Node.removeChild() doesn't remove #41659
Comments
There seems to be a constellation where I found this bug in 2.3.4 and it is still in: Python 2.3.5 (#2, Feb 9 2005, 00:38:15) I attached 3 files, the dombug.py demonstrates the First, I iterate over all children of a specific The difference between the xml files is the carriage Since to my knowledge both xml files are well-formed I |
Logged In: YES so.. this form posts the error report with uploading Anyway, the output I get when running the program with
imho it should be, as it is with errorfree.xml: found element 1 |
Logged In: YES Bug should be marked INVALID. childNodes lists are 'live'. You are iterating over a list foo= [1, 2, 3, 4]
i= 0
while i<len(foo):
del foo[i]
i+= 1
foo
>>> [2, 4] The 'working' example only works because it has extra BTW, there's a separate bug tracker for the PyXML project |
Logged In: YES well then, invalid. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: