summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-24 20:30:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-24 20:30:46 (GMT)
commitb876df4cbb0b2b51ed4576ebbecea6f794d4abcd (patch)
treeac2e99846f819e01e74206d13654c91bae42acf4 /Doc
parentd9d769fcdd573ab12b628798288c02dceba53505 (diff)
parent8ffe917cee26b83fed4f227c4ed16d4eec15dcf9 (diff)
downloadcpython-b876df4cbb0b2b51ed4576ebbecea6f794d4abcd.zip
cpython-b876df4cbb0b2b51ed4576ebbecea6f794d4abcd.tar.gz
cpython-b876df4cbb0b2b51ed4576ebbecea6f794d4abcd.tar.bz2
Issue #23671: string.Template now allows to specify the "self" parameter as
keyword argument. string.Formatter now allows to specify the "self" and the "format_string" parameters as keyword arguments.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/string.rst4
-rw-r--r--Doc/whatsnew/3.5.rst4
2 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index f9da5fa..eab9f37 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -95,6 +95,10 @@ implementation as the built-in :meth:`format` method.
an arbitrary set of positional and keyword arguments.
:meth:`format` is just a wrapper that calls :meth:`vformat`.
+ .. deprecated:: 3.5
+ Passing a format string as keyword argument *format_string* has been
+ deprecated.
+
.. method:: vformat(format_string, args, kwargs)
This function does the actual work of formatting. It is exposed as a
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 44915a3..aa5af04 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -526,6 +526,10 @@ Deprecated Python modules, functions and methods
:func:`~http.cookies.Morsel.set` method in order to avoid the deprecation
warning.
+* Passing a format string as keyword argument *format_string* to the
+ :meth:`~string.Formatter.format` method of the :class:`string.Formatter`
+ class has been deprecated.
+
Deprecated functions and types of the C API
-------------------------------------------