[issue21403] cElementTree's Element creation handles attrib argument different from ET
Santoso Wijaya
report at bugs.python.org
Thu May 1 17:46:15 CEST 2014
Santoso Wijaya added the comment:
Quoting dabrahams in issue 1572710:
On second thought, I see what effbot is trying to say... but it's still a bug. Given the way the interface is declared and the behavior of regular python functions:
Element(tag, attrib={}, **extra)
indicates that I can pass attrib (or tag, for that matter) as a keyword argument. Nothing in the documentation gives the C implementation permission to behave differently.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21403>
_______________________________________
More information about the Python-bugs-list
mailing list