Author adamwill
Recipients adamwill, ammar2, christian.heimes, serhiy.storchaka
Date 2016-12-22.20:13:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Aha, so thanks to my colleague Patrick Uiterwijk, we see the problem. Since Python 3.3, Python doesn't actually use that pure-Python iterparse() function if it can instead replace it with a C version:

"# Overwrite 'ElementTree.parse' and 'iterparse' to use the C XMLParser"

so the reason defusedxml wants to use _IterParseIterator on Python 3 is because if it just uses xml.etree.ElementTree.iterparse() it's getting the 'accelerated' C implementation, not the pure-Python implementation it wants.
Date User Action Args
2016-12-22 20:13:35adamwillsetrecipients: + adamwill, christian.heimes, serhiy.storchaka, ammar2
2016-12-22 20:13:35adamwillsetmessageid: <>
2016-12-22 20:13:35adamwilllinkissue29050 messages
2016-12-22 20:13:35adamwillcreate