[issue1572710] cElementTree.SubElement doesn't recognize keyword "attrib"

Dave Abrahams report at bugs.python.org
Sat Apr 21 04:10:18 CEST 2012


Dave Abrahams <dave at boostpro.com> added the comment:

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/issue1572710>
_______________________________________


More information about the Python-bugs-list mailing list