Stefan Behnel added the comment:

Works for me in 3.2 and 3.4, fails in 2.7, as reported.

I'll leave it to Eli to decide if this should get fixed in 2.7. In Py2, ET and 
cET were different modules, so this could also be considered a missing feature 
in cET. Given that it leads to a serialisation failure, though, it shouldn't 
hurt to change the behaviour.

(changing title to something more specific)

----------
nosy: +scoder
title: cElementTree creation of nodes with attributes is bugged -> 
cElementTree's Element creation handles attrib argument different from ET

_______________________________________
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

Reply via email to