From 6ed7aff8948e50708f048f3f7fd41809259d1777 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 11 Sep 2017 09:26:39 +0300 Subject: [PATCH] [2.7] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166). (#3492) (cherry picked from commit 2e6bb4484ee1b0da67d1dfcf0816c58602daa5a0) --- Python/bltinmodule.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.50.1