Santoso Wijaya added the comment: Or, more succintly:
Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import xml.etree.ElementTree as ET >>> root = ET.Element('Root', attrib={'Name':'Root'}) >>> root.attrib {'Name': 'Root'} >>> import xml.etree.cElementTree as cET >>> root = cET.Element('Root', attrib={'Name':'Root'}) >>> root.attrib {'attrib': {'Name': 'Root'}} ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21403> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com