New submission from Viktor Kis <vkisfore...@gmail.com>:
Standard library xml.ElementTree - iterparse does not close filehandle properly when breaking out of a for loop iterating with iterparse. The issue only occurs when the user passes a "string" as a source object instead of a filehandle (that is because a user's filehandle can safely be closed in a context manager as shown in the attachment). ---------- components: XML files: ETiterparse.py messages: 387494 nosy: vkisforever priority: normal severity: normal status: open title: xml.ElementTree iterparse filehandle left open type: crash versions: Python 3.9 Added file: https://bugs.python.org/file49826/ETiterparse.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43292> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com