The added iter/itertext methods in Element are not working under certain circumstances (crashes): This crashes: e = ElementTree().parse('/Users/kronuz/Desktop/tests/houses.xml') e.iter() But the problem is not there if I use bootstrapped iterators instead (from the previous commit to the one introducing Element iterator)
I'm having trouble reproducing the problem, Germán. Running with Python 3.3.2 from a couple of days ago: Python 3.3.2+ (3.3:0eef1670f316, Sep 8 2013, 08:31:59) [GCC 4.6.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from xml.etree.ElementTree import * >>> e = ElementTree().parse('houses.xml') >>> e.iter() <_elementtree._element_iterator object at 0x7fac621d9aa0> >>> list(e.iter()) [<Element '{http://dogs.house.local}group' at 0x7fac621e02b8>, <Element '{http://dogs.house.local}house' at 0x7fac621e0368>, <Element '{http://dogs.house.local}id' at 0x7fac621e0418>, <Element '{http://dogs.house.local}dogs' at 0x7fac621e0470>, <Element '{http://dogs.house.local}house' at 0x7fac621e04c8>, <Element '{http://dogs.house.local}id' at 0x7fac621e0520>, <Element '{http://dogs.house.local}dogs' at 0x7fac621e0578>] Can you provide a patch for the ET tests that I can apply to tip of 3.3 and see this reproduced?
I can't reproduce it with the most recent default branch (Python 3.4.0a2+ (default:c7fdb0637d0b, Sep 13 2013, 05:29:00)) either. Unless I'm missing something, there's no issue here. Let me know if something else can be done. Otherwise I'll close the issue in a couple of days.
History
Date
User
Action
Args
2022-04-11 14:57:50
admin
set
github: 63198
2013-09-15 19:10:44
eli.bendersky
set
status: open -> closedresolution: works for mestage: test needed -> resolved
2013-09-13 12:35:36
eli.bendersky
set
messages: +
2013-09-10 17:43:59
eli.bendersky
set
assignee: eli.benderskymessages: + stage: test needed