Martin Panter <vadmium...@gmail.com> added the comment:

Perhaps this can be handled with Issue 25707, which is open for adding an API 
to close the file, similar to how "os.scandir" iterator implements a context 
manager and "close" method.

----------
nosy: +martin.panter
superseder:  -> Add the close method for ElementTree.iterparse() object

_______________________________________
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

Reply via email to