]> granicus.if.org Git - python/commit
Issue #13782: streamline argument type-checking in ET.Element
authorEli Bendersky <eliben@gmail.com>
Fri, 23 Mar 2012 12:24:20 +0000 (14:24 +0200)
committerEli Bendersky <eliben@gmail.com>
Fri, 23 Mar 2012 12:24:20 +0000 (14:24 +0200)
commit396e8fcf36480dacaeeeb785a3912a565294d3b7
tree173647551cef119cdf7644b8eb009b4a48314995
parent42243c4dcaee5fe6e680d1ea4b1b615dd0d18b10
Issue #13782: streamline argument type-checking in ET.Element

append, extend and insert now consistently type-check their argument in both
the C and Python implementations, and raise TypeError for non-Element
argument.

Added tests
Doc/library/xml.etree.elementtree.rst
Lib/test/test_xml_etree.py
Lib/xml/etree/ElementTree.py
Modules/_elementtree.c