Message282376
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:24 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, scoder, eli.bendersky |
2016-12-04 23:03:24 | serhiy.storchaka | set | messageid: <1480892604.34.0.360751620771.issue28871@psf.upfronthosting.co.za> |
2016-12-04 23:03:24 | serhiy.storchaka | link | issue28871 messages |
2016-12-04 23:03:24 | serhiy.storchaka | create | |
|