summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorAmit Kumar <aktech@users.noreply.github.com>2017-05-29 06:32:26 +0530
committerNick Coghlan <ncoghlan@gmail.com>2017-05-29 11:02:26 +1000
commit2e6bb4484ee1b0da67d1dfcf0816c58602daa5a0 (patch)
treece9751a0399c4d29adae995c6e658d32c8405afb /Python/bltinmodule.c
parentac5bbd43bc7b769c13ae0412cb28a3521f4d4ff1 (diff)
downloadcpython-git-2e6bb4484ee1b0da67d1dfcf0816c58602daa5a0.tar.gz
Add reference to help('FORMATTING') in format() builtin (GH-166)
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 1d78045652..a0c62db8b2 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -578,12 +578,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);
}