Skip to content

Commit 15c0c5b

Browse files
committed
Add versionchanged directive for ResourceWarning
Document that iterparse now emits ResourceWarning in Python 3.15 when not explicitly closed. Signed-off-by: Osama Abdelkader <[email protected]>
1 parent b1f67a4 commit 15c0c5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/xml.etree.elementtree.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,10 @@ Functions
656656
.. versionchanged:: 3.13
657657
Added the :meth:`!close` method.
658658

659+
.. versionchanged:: 3.15
660+
A :exc:`ResourceWarning` is now emitted if the iterator opened a file
661+
and is not explicitly closed.
662+
659663

660664
.. function:: parse(source, parser=None)
661665

0 commit comments

Comments
 (0)