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

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

Issue 4972: context managerment support in imaplib, smtplib, ftplib
Patch Set: Created 5 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
« no previous file with comments | « Doc/library/imaplib.rst ('k') | Lib/imaplib.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 **************************** 1 ****************************
2 What's New In Python 3.5 2 What's New In Python 3.5
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 Improved Modules 134 Improved Modules
135 ================ 135 ================
136 136
137 doctest 137 doctest
138 ------- 138 -------
139 139
140 * :func:`doctest.DocTestSuite` returns an empty :class:`unittest.TestSuite` if 140 * :func:`doctest.DocTestSuite` returns an empty :class:`unittest.TestSuite` if
141 *module* contains no docstrings instead of raising :exc:`ValueError` 141 *module* contains no docstrings instead of raising :exc:`ValueError`
142 (contributed by Glenn Jones in :issue:`15916`). 142 (contributed by Glenn Jones in :issue:`15916`).
143
144 imaplib
145 -------
146
147 * :class:`IMAP4` now supports the context management protocol. When used in a
148 :keyword:`with` statement, the IMAP4 ``LOGOUT`` command will be called
149 automatically at the end of the block. (Contributed by Serhiy Storchaka in
150 :issue:`4972`).
143 151
144 imghdr 152 imghdr
145 ------ 153 ------
146 154
147 * :func:`~imghdr.what` now recognizes the `OpenEXR <http://www.openexr.com>`_ 155 * :func:`~imghdr.what` now recognizes the `OpenEXR <http://www.openexr.com>`_
148 format (contributed by Martin vignali and Cladui Popa in :issue:`20295`). 156 format (contributed by Martin vignali and Cladui Popa in :issue:`20295`).
149 157
150 importlib 158 importlib
151 --------- 159 ---------
152 160
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 instead of being set from the code name. Use ``gen.gi_code.co_name`` to 344 instead of being set from the code name. Use ``gen.gi_code.co_name`` to
337 retrieve the code name. Generators also have a new ``__qualname__`` 345 retrieve the code name. Generators also have a new ``__qualname__``
338 attribute, the qualified name, which is now used for the representation 346 attribute, the qualified name, which is now used for the representation
339 of a generator (``repr(gen)``). See :issue:`21205`. 347 of a generator (``repr(gen)``). See :issue:`21205`.
340 348
341 Changes in the C API 349 Changes in the C API
342 -------------------- 350 --------------------
343 351
344 * The :c:type:`PyMemAllocator` structure was renamed to 352 * The :c:type:`PyMemAllocator` structure was renamed to
345 :c:type:`PyMemAllocatorEx` and a new ``calloc`` field was added. 353 :c:type:`PyMemAllocatorEx` and a new ``calloc`` field was added.
OLDNEW
« no previous file with comments | « Doc/library/imaplib.rst ('k') | Lib/imaplib.py » ('j') | no next file with comments »

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