mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
[3.13] gh-111999: Fix the signature of str.format_map() (GH-119540) (#119543)
(cherry picked from commit 08e65430aa
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
5544651350
commit
f49749cf8f
3 changed files with 3 additions and 2 deletions
|
@ -1768,7 +1768,7 @@ expression support in the :mod:`re` module).
|
||||||
cases.
|
cases.
|
||||||
|
|
||||||
|
|
||||||
.. method:: str.format_map(mapping)
|
.. method:: str.format_map(mapping, /)
|
||||||
|
|
||||||
Similar to ``str.format(**mapping)``, except that ``mapping`` is
|
Similar to ``str.format(**mapping)``, except that ``mapping`` is
|
||||||
used directly and not copied to a :class:`dict`. This is useful
|
used directly and not copied to a :class:`dict`. This is useful
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix the signature of :meth:`str.format_map`.
|
|
@ -13411,7 +13411,7 @@ Return a formatted version of the string, using substitutions from args and kwar
|
||||||
The substitutions are identified by braces ('{' and '}').");
|
The substitutions are identified by braces ('{' and '}').");
|
||||||
|
|
||||||
PyDoc_STRVAR(format_map__doc__,
|
PyDoc_STRVAR(format_map__doc__,
|
||||||
"format_map($self, /, mapping)\n\
|
"format_map($self, mapping, /)\n\
|
||||||
--\n\
|
--\n\
|
||||||
\n\
|
\n\
|
||||||
Return a formatted version of the string, using substitutions from mapping.\n\
|
Return a formatted version of the string, using substitutions from mapping.\n\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue