Author mitya57
Recipients mitya57
Date 2016-09-29.19:44:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475178246.36.0.289281608925.issue28314@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-29 19:44:06mitya57setrecipients: + mitya57
2016-09-29 19:44:06mitya57setmessageid: <1475178246.36.0.289281608925.issue28314@psf.upfronthosting.co.za>
2016-09-29 19:44:06mitya57linkissue28314 messages
2016-09-29 19:44:06mitya57create