]> granicus.if.org Git - python/commitdiff
[2.7] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 11 Sep 2017 06:26:39 +0000 (09:26 +0300)
committerGitHub <noreply@github.com>
Mon, 11 Sep 2017 06:26:39 +0000 (09:26 +0300)
(cherry picked from commit 2e6bb4484ee1b0da67d1dfcf0816c58602daa5a0)

Python/bltinmodule.c

index 70308e9dc9eaf425b2cbef0fb621ec49c8d2d149..0f2ee4ad1eb69f1ea72f8c6c92a50181f5a5c1b3 100644 (file)
@@ -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)