Message277717
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. |
|
Date |
User |
Action |
Args |
2016-09-29 19:44:06 | mitya57 | set | recipients:
+ mitya57 |
2016-09-29 19:44:06 | mitya57 | set | messageid: <1475178246.36.0.289281608925.issue28314@psf.upfronthosting.co.za> |
2016-09-29 19:44:06 | mitya57 | link | issue28314 messages |
2016-09-29 19:44:06 | mitya57 | create | |
|