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

Side by Side Diff: Doc/whatsnew/3.6.rst

Issue 25994: File descriptor leaks in os.scandir()
Patch Set: Created 3 years, 7 months ago
Left:
Right:
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 unified diff | Download patch
OLDNEW
1 **************************** 1 ****************************
2 What's New In Python 3.6 2 What's New In Python 3.6
3 **************************** 3 ****************************
4 4
5 :Release: |release| 5 :Release: |release|
6 :Date: |today| 6 :Date: |today|
7 7
8 .. Rules for maintenance: 8 .. Rules for maintenance:
9 9
10 * Anyone can add text to this document. Do not spend very much time 10 * Anyone can add text to this document. Do not spend very much time
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Improved Modules 95 Improved Modules
96 ================ 96 ================
97 97
98 datetime 98 datetime
99 -------- 99 --------
100 100
101 The :meth:`datetime.strftime() <datetime.datetime.strftime>` and 101 The :meth:`datetime.strftime() <datetime.datetime.strftime>` and
102 :meth:`date.strftime() <datetime.date.strftime>` methods now support ISO 8601 da te 102 :meth:`date.strftime() <datetime.date.strftime>` methods now support ISO 8601 da te
103 directives ``%G``, ``%u`` and ``%V``. 103 directives ``%G``, ``%u`` and ``%V``.
104 (Contributed by Ashley Anderson in :issue:`12006`.) 104 (Contributed by Ashley Anderson in :issue:`12006`.)
105
106
107 os
108 --
109
110 A new :meth:`~os.scandir.close` method allows explicitly closing a
111 :func:`~os.scandir` iterator. The :func:`~os.scandir` iterator now
112 supports the :term:`context manager` protocol. If a :func:`scandir`
113 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.
114 will be emitted in its destructor.
115 (Contributed by Serhiy Storchaka in :issue:`25994`.)
105 116
106 117
107 pickle 118 pickle
108 ------ 119 ------
109 120
110 Objects that need calling ``__new__`` with keyword arguments can now be pickled 121 Objects that need calling ``__new__`` with keyword arguments can now be pickled
111 using :ref:`pickle protocols <pickle-protocols>` older than protocol version 4. 122 using :ref:`pickle protocols <pickle-protocols>` older than protocol version 4.
112 Protocol version 4 already supports this case. (Contributed by Serhiy 123 Protocol version 4 already supports this case. (Contributed by Serhiy
113 Storchaka in :issue:`24164`.) 124 Storchaka in :issue:`24164`.)
114 125
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 * When a relative import is performed and no parent package is known, then 317 * When a relative import is performed and no parent package is known, then
307 :exc:`ImportError` will be raised. Previously, :exc:`SystemError` could be 318 :exc:`ImportError` will be raised. Previously, :exc:`SystemError` could be
308 raised. (Contribute by Brett Cannon in :issue:`18018`.) 319 raised. (Contribute by Brett Cannon in :issue:`18018`.)
309 320
310 321
311 Changes in the C API 322 Changes in the C API
312 -------------------- 323 --------------------
313 324
314 * :c:func:`Py_Exit` (and the main interpreter) now override the exit status 325 * :c:func:`Py_Exit` (and the main interpreter) now override the exit status
315 with 120 if flushing buffered data failed. See :issue:`5319`. 326 with 120 if flushing buffered data failed. See :issue:`5319`.
OLDNEW

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