mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
[3.6] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166). (#3491)
(cherry picked from commit 2e6bb4484e
)
This commit is contained in:
parent
4a8b53a208
commit
c67838da2c
2 changed files with 8 additions and 4 deletions
|
@ -588,12 +588,14 @@ format as builtin_format
|
|||
|
||||
Return value.__format__(format_spec)
|
||||
|
||||
format_spec defaults to the empty string
|
||||
format_spec defaults to the empty string.
|
||||
See the Format Specification Mini-Language section of help('FORMATTING') for
|
||||
details.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_format_impl(PyObject *module, PyObject *value, PyObject *format_spec)
|
||||
/*[clinic end generated code: output=2f40bdfa4954b077 input=6325e751a1b29b86]*/
|
||||
/*[clinic end generated code: output=2f40bdfa4954b077 input=88339c93ea522b33]*/
|
||||
{
|
||||
return PyObject_Format(value, format_spec);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue