bpo-35013: Add more type checks for children of Element. (GH-9944)
It is now guarantied that children of xml.etree.ElementTree.Element are Elements (at least in C implementation). Previously methods __setitem__(), __setstate__() and __deepcopy__() could be used for adding non-Element children.
S
Serhiy Storchaka committed
f081fd83032be48aefdb1bbcc38ab5deb03785d5
Parent: 68def05
Committed by GitHub <noreply@github.com>
on 10/19/2018, 9:12:57 AM