[Python-checkins] [2.7] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166). (#3492)
Serhiy Storchaka
webhook-mailer at python.org
Mon Sep 11 02:26:42 EDT 2017
https://github.com/python/cpython/commit/6ed7aff8948e50708f048f3f7fd41809259d1777
commit: 6ed7aff8948e50708f048f3f7fd41809259d1777
branch: 2.7
author: Serhiy Storchaka <storchaka at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-09-11T09:26:39+03:00
summary:
[2.7] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166). (#3492)
(cherry picked from commit 2e6bb4484ee1b0da67d1dfcf0816c58602daa5a0)
files:
M Python/bltinmodule.c
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 70308e9dc9e..0f2ee4ad1eb 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)
More information about the Python-checkins
mailing list