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

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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 105
106
107 os
108 --
109
110 A new :meth:`scandir.close() <os.scandir.close>` method allows explicit
111 closing a :class:`~os.scandir` instance. The :class:`~os.scandir` class
Martin Panter 2016/02/09 02:45:01 explicitly closing
storchaka 2016/02/09 16:11:45 Done.
112 now supports the :term:`context manager` protocol.
113 (Contributed by Serhiy Storchaka in :issue:`25994`.)
106 114
107 pickle 115 pickle
108 ------ 116 ------
109 117
110 Objects that need calling ``__new__`` with keyword arguments can now be pickled 118 Objects that need calling ``__new__`` with keyword arguments can now be pickled
111 using :ref:`pickle protocols <pickle-protocols>` older than protocol version 4. 119 using :ref:`pickle protocols <pickle-protocols>` older than protocol version 4.
112 Protocol version 4 already supports this case. (Contributed by Serhiy 120 Protocol version 4 already supports this case. (Contributed by Serhiy
113 Storchaka in :issue:`24164`.) 121 Storchaka in :issue:`24164`.)
114 122
115 123
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 * When a relative import is performed and no parent package is known, then 299 * When a relative import is performed and no parent package is known, then
292 :exc:`ImportError` will be raised. Previously, :exc:`SystemError` could be 300 :exc:`ImportError` will be raised. Previously, :exc:`SystemError` could be
293 raised. (Contribute by Brett Cannon in :issue:`18018`.) 301 raised. (Contribute by Brett Cannon in :issue:`18018`.)
294 302
295 303
296 Changes in the C API 304 Changes in the C API
297 -------------------- 305 --------------------
298 306
299 * :c:func:`Py_Exit` (and the main interpreter) now override the exit status 307 * :c:func:`Py_Exit` (and the main interpreter) now override the exit status
300 with 120 if flushing buffered data failed. See :issue:`5319`. 308 with 120 if flushing buffered data failed. See :issue:`5319`.
OLDNEW

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