This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vkisforever
Recipients vkisforever
Date 2021-02-22.04:11:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613967089.4.0.392869817438.issue43292@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2021-02-22 04:11:29vkisforeversetrecipients: + vkisforever
2021-02-22 04:11:29vkisforeversetmessageid: <1613967089.4.0.392869817438.issue43292@roundup.psfhosted.org>
2021-02-22 04:11:29vkisforeverlinkissue43292 messages
2021-02-22 04:11:29vkisforevercreate