From: Serhiy Storchaka Date: Mon, 11 Sep 2017 06:26:39 +0000 (+0300) Subject: [2.7] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166... X-Git-Tag: v2.7.15rc1~206 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ed7aff8948e50708f048f3f7fd41809259d1777;p=python [2.7] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166). (#3492) (cherry picked from commit 2e6bb4484ee1b0da67d1dfcf0816c58602daa5a0) --- 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)