summaryrefslogtreecommitdiff
path: root/Doc/library/string.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-24 22:30:46 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-24 22:30:46 +0200
commitb876df4cbb0b2b51ed4576ebbecea6f794d4abcd (patch)
treeac2e99846f819e01e74206d13654c91bae42acf4 /Doc/library/string.rst
parentd9d769fcdd573ab12b628798288c02dceba53505 (diff)
parent8ffe917cee26b83fed4f227c4ed16d4eec15dcf9 (diff)
downloadcpython-git-b876df4cbb0b2b51ed4576ebbecea6f794d4abcd.tar.gz
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/library/string.rst')
-rw-r--r--Doc/library/string.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index f9da5fa7ad..eab9f370f6 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