Skip to content

Commit d004997

Browse files
aktechserhiy-storchaka
authored andcommitted
[2.7] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166).
(cherry picked from commit 2e6bb44)
1 parent e1847ea commit d004997

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Python/bltinmodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ PyDoc_STRVAR(format_doc,
374374
"format(value[, format_spec]) -> string\n\
375375
\n\
376376
Returns value.__format__(format_spec)\n\
377-
format_spec defaults to \"\"");
377+
format_spec defaults to the empty string.\n\
378+
See the Format Specification Mini-Language section of help('FORMATTING') for\n\
379+
details.");
378380

379381
static PyObject *
380382
builtin_chr(PyObject *self, PyObject *args)

0 commit comments

Comments
 (0)