New submission from Dmitry Shachnev: The documentation says that getiterator() still accepts a tag argument, but it does not:
>>> from xml.etree.ElementTree import Element >>> el = Element('foo') >>> el.getiterator('bar') Traceback (most recent call last): File "<stdin>", line 1, in <module> SystemError: ../Python/getargs.c:1508: bad argument to internal function >>> el.getiterator(tag='bar') Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: iter() takes at most 1 argument (140172072006928 given) This is with Python 3.6.0 beta 1 on Debian GNU/Linux amd64. ---------- components: Library (Lib) messages: 277717 nosy: mitya57 priority: normal severity: normal status: open title: ElementTree: Element.getiterator(tag) broken in 3.6 type: behavior versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28314> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com