[issue35729] XML.etree bug

2019-01-13 Thread Stefan Behnel
Stefan Behnel added the comment: This is not a bug, it's normal, documented behaviour. The children are not guaranteed to be available during the "start" event. Only the tag itself is guaranteed to be there. The guarantee that the subtree is complete is only given for the "end" event. See t

[issue35729] XML.etree bug

2019-01-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +XML nosy: +eli.bendersky, scoder, serhiy.storchaka ___ Python tracker ___ ___ Python-bu

[issue35729] XML.etree bug

2019-01-13 Thread Igor Nowicki
New submission from Igor Nowicki : Consider we have big XML file and we can't load it all into memory. We use then `iterparse` function from XML.etree.ElementTree module to parse it element by element. Problem is, XML doesn't allow to run this smoothly and starts outputing wrong data after l