mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
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:
commit
b876df4cbb
6 changed files with 60 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
-------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue