Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9175bd

Browse files
committed
Fix issue #15607: Update the print builtin function docstring with the new flush keyword.
Patch contributed by Daniel Ellis.
1 parent 731d48a commit e9175bd

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Python/bltinmodule.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,13 +1590,14 @@ builtin_print(PyObject *self, PyObject *args, PyObject *kwds)
15901590
}
15911591

15921592
PyDoc_STRVAR(print_doc,
1593-
"print(value, ..., sep=' ', end='\\n', file=sys.stdout)\n\
1593+
"print(value, ..., sep=' ', end='\\n', file=sys.stdout, flush=False)\n\
15941594
\n\
15951595
Prints the values to a stream, or to sys.stdout by default.\n\
15961596
Optional keyword arguments:\n\
1597-
file: a file-like object (stream); defaults to the current sys.stdout.\n\
1598-
sep: string inserted between values, default a space.\n\
1599-
end: string appended after the last value, default a newline.");
1597+
file: a file-like object (stream); defaults to the current sys.stdout.\n\
1598+
sep: string inserted between values, default a space.\n\
1599+
end: string appended after the last value, default a newline.\n\
1600+
flush: whether to forcibly flush the stream.");
16001601

16011602

16021603
static PyObject *

0 commit comments

Comments
 (0)