Santoso Wijaya <santoso.wij...@gmail.com> added the comment: This does not only affect `append`, but also, `insert`, `extend`, etc.
In fact, the list-like operations on Element are merely forwarded to its `_children` (a list) field. Should we really type check these methods' arguments each? Doesn't strike as Pythonic to me... OTOH, in cElementTree, by virtue of C-API's tuple unpacking convention, the argument's type is always strictly checked prior to accessing the children list. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13782> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com