summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-01-13 19:14:40 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-01-13 19:14:40 (GMT)
commitb2d6179d55578a1c21468af7154fe78447c9efd9 (patch)
treea2ed201870c6382c757f4f774a0b47a9f5ea90dc /Doc/whatsnew
parent9ed707eb4c56506a0e20072a0f5e43f8e5dbdeb8 (diff)
downloadcpython-b2d6179d55578a1c21468af7154fe78447c9efd9.zip
cpython-b2d6179d55578a1c21468af7154fe78447c9efd9.tar.gz
cpython-b2d6179d55578a1c21468af7154fe78447c9efd9.tar.bz2
Document Python versions in which the removed features were deprecated.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.7.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 56545b8..ca7c2c5 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -137,10 +137,11 @@ API and Feature Removals
------------------------
* Unknown escapes consisting of ``'\'`` and an ASCII letter in replacement
- templates for :func:`re.sub` will now cause an error.
+ templates for :func:`re.sub` were deprecated in Python 3.5, and will now
+ cause an error.
* Removed support of the *exclude* argument in :meth:`tarfile.TarFile.add`.
- Use the *filter* argument instead.
+ It was deprecated in Python 2.7 and 3.2. Use the *filter* argument instead.
* The ``splitunc()`` function in the :mod:`ntpath` module was deprecated in
Python 3.1, and has now been removed. Use the :func:`~os.path.splitdrive`
@@ -159,11 +160,13 @@ Changes in the Python API
* A format string argument for :meth:`string.Formatter.format`
is now :ref:`positional-only <positional-only_parameter>`.
+ Passing it as a keyword argument was deprecated in Python 3.5.
(Contributed by Serhiy Storchaka in :issue:`29193`.)
* Attributes :attr:`~http.cookies.Morsel.key`,
:attr:`~http.cookies.Morsel.value` and
:attr:`~http.cookies.Morsel.coded_value` of class
:class:`http.cookies.Morsel` are now read-only.
+ Assigning to them was deprecated in Python 3.5.
Use the :meth:`~http.cookies.Morsel.set` method for setting them.
(Contributed by Serhiy Storchaka in :issue:`29192`.)