[New-bugs-announce] [issue28314] ElementTree: Element.getiterator(tag) broken in 3.6

Dmitry Shachnev report at bugs.python.org
Thu Sep 29 15:44:06 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue28314>
_______________________________________


More information about the New-bugs-announce mailing list