mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #29193: A format string argument for string.Formatter.format()
is now positional-only.
This commit is contained in:
parent
b37f3f6e6b
commit
009b0a1fac
5 changed files with 16 additions and 14 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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`.)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue