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.
This commit is contained in:
Serhiy Storchaka 2015-03-24 22:30:46 +02:00
commit b876df4cbb
6 changed files with 60 additions and 3 deletions

View file

@ -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

View file

@ -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
-------------------------------------------