Author serhiy.storchaka
Recipients eli.bendersky, scoder, serhiy.storchaka
Date 2016-12-04.23:03:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The Element class in the xml.etree.ElementTree module is a collection. It can contain other Element's. But unlike to common Python collections (list, dict, etc) and pure Python classes, C implementation of Element doesn't support unlimited recursion. As result, destroying very deep Element tree can cause stack overflow. Example:

import xml.etree.cElementTree as ElementTree
y = x = ElementTree.Element('x')
for i in range(200000): y = ElementTree.SubElement(y, 'x')

del x
Date User Action Args
2016-12-04 23:03:24serhiy.storchakasetrecipients: + serhiy.storchaka, scoder, eli.bendersky
2016-12-04 23:03:24serhiy.storchakasetmessageid: <>
2016-12-04 23:03:24serhiy.storchakalinkissue28871 messages
2016-12-04 23:03:24serhiy.storchakacreate