Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(40689)

Unified Diff: Doc/whatsnew/3.6.rst

Issue 25994: File descriptor leaks in os.scandir()
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
--- a/Doc/whatsnew/3.6.rst Wed Feb 10 10:31:43 2016 +0200
+++ b/Doc/whatsnew/3.6.rst Wed Feb 10 11:02:33 2016 +0200
@@ -104,6 +104,17 @@ directives ``%G``, ``%u`` and ``%V``.
(Contributed by Ashley Anderson in :issue:`12006`.)
+os
+--
+
+A new :meth:`~os.scandir.close` method allows explicitly closing a
+:func:`~os.scandir` iterator. The :func:`~os.scandir` iterator now
+supports the :term:`context manager` protocol. If a :func:`scandir`
+iterator is not exhausted nor explicitly closed a :exc:`ResourceWarning`
Jim.J.Jewett 2016/02/10 23:20:41 "not ... nor" -> "neither ... nor"
storchaka 2016/02/11 12:20:36 Done.
+will be emitted in its destructor.
+(Contributed by Serhiy Storchaka in :issue:`25994`.)
+
+
pickle
------

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+