summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-09-11 09:26:39 +0300
committerGitHub <noreply@github.com>2017-09-11 09:26:39 +0300
commit6ed7aff8948e50708f048f3f7fd41809259d1777 (patch)
tree642be80bdaf95aeb8aa6ae86b9d3e90cb96a55dc /Python
parente1847ea4a9bdc7549893091a63e14f2afbdecc32 (diff)
downloadcpython-git-6ed7aff8948e50708f048f3f7fd41809259d1777.tar.gz
[2.7] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166). (#3492)
(cherry picked from commit 2e6bb4484ee1b0da67d1dfcf0816c58602daa5a0)
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 70308e9dc9..0f2ee4ad1e 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -374,7 +374,9 @@ PyDoc_STRVAR(format_doc,
"format(value[, format_spec]) -> string\n\
\n\
Returns value.__format__(format_spec)\n\
-format_spec defaults to \"\"");
+format_spec defaults to the empty string.\n\
+See the Format Specification Mini-Language section of help('FORMATTING') for\n\
+details.");
static PyObject *
builtin_chr(PyObject *self, PyObject *args)