[issue18998] iter() not working in ElementTree
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - works for me stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18998 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18998] iter() not working in ElementTree
Eli Bendersky added the comment: 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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18998 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18998] iter() not working in ElementTree
New submission from Germán M. Bravo: 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) -- components: Extension Modules files: houses.xml messages: 197441 nosy: Kronuz, eli.bendersky, scoder priority: normal severity: normal status: open title: iter() not working in ElementTree type: crash versions: Python 3.3 Added file: http://bugs.python.org/file31720/houses.xml ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18998 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18998] iter() not working in ElementTree
irakli added the comment: Can you clearify under which circumstances python 3.3 crashes? -- nosy: +iraklid94 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18998 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18998] iter() not working in ElementTree
Germán M. Bravo added the comment: It crashes when I run that code snippet I posted (using the attached xml file) The problem was introduced by the commit that added iterator support. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18998 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18998] iter() not working in ElementTree
Eli Bendersky added the comment: 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? -- assignee: - eli.bendersky stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18998 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com