Issue #29193: A format string argument for string.Formatter.format()

is now positional-only.
This commit is contained in:
Serhiy Storchaka 2017-01-13 09:10:51 +02:00
parent b37f3f6e6b
commit 009b0a1fac
5 changed files with 16 additions and 14 deletions

View file

@ -95,9 +95,9 @@ implementation as the built-in :meth:`~str.format` method.
an arbitrary set of positional and keyword arguments.
It is just a wrapper that calls :meth:`vformat`.
.. deprecated:: 3.5
Passing a format string as keyword argument *format_string* has been
deprecated.
.. versionchanged:: 3.7
A format string argument is now :ref:`positional-only
<positional-only_parameter>`.
.. method:: vformat(format_string, args, kwargs)

View file

@ -147,3 +147,9 @@ This section lists previously described changes and other bugfixes
that may require changes to your code.
Changes in the Python API
-------------------------
* A format string argument for :meth:`string.Formatter.format`
is now :ref:`positional-only <positional-only_parameter>`.
(Contributed by Serhiy Storchaka in :issue:`29193`.)