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

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

Issue 25994: File descriptor leaks in os.scandir()
Patch Set: Created 3 years, 8 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:`close() <os.scandir.close>` method allows explicitly
Martin Panter 2016/02/10 03:38:38 Not a big deal, but I would have though the markup
storchaka 2016/02/10 10:03:42 Done.
111 closing a :func:`~os.scandir` iterator. The :func:`~os.scandir` iterator
112 now supports the :term:`context manager` protocol. If a :func:`scandir`
113 iterator is not exhausted or explicitly closed a :exc:`ResourceWarning`
Martin Panter 2016/02/10 03:38:38 nor explicitly closed
storchaka 2016/02/10 10:03:42 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 * When a relative import is performed and no parent package is known, then 302 * When a relative import is performed and no parent package is known, then
292 :exc:`ImportError` will be raised. Previously, :exc:`SystemError` could be 303 :exc:`ImportError` will be raised. Previously, :exc:`SystemError` could be
293 raised. (Contribute by Brett Cannon in :issue:`18018`.) 304 raised. (Contribute by Brett Cannon in :issue:`18018`.)
294 305
295 306
296 Changes in the C API 307 Changes in the C API
297 -------------------- 308 --------------------
298 309
299 * :c:func:`Py_Exit` (and the main interpreter) now override the exit status 310 * :c:func:`Py_Exit` (and the main interpreter) now override the exit status
300 with 120 if flushing buffered data failed. See :issue:`5319`. 311 with 120 if flushing buffered data failed. See :issue:`5319`.
OLDNEW

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