summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-08-10 20:53:45 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-08-10 20:53:45 (GMT)
commite9175bd0af440c92364466b22267a93890b44015 (patch)
tree6558820f47781220dcbefa62fd62e1ac11d8719a /Python
parent731d48a65f4cfc6d99e7ec9bf0debd4080bf6eb0 (diff)
downloadcpython-e9175bd0af440c92364466b22267a93890b44015.zip
cpython-e9175bd0af440c92364466b22267a93890b44015.tar.gz
cpython-e9175bd0af440c92364466b22267a93890b44015.tar.bz2
Fix issue #15607: Update the print builtin function docstring with the new flush keyword.
Patch contributed by Daniel Ellis.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index e6511a1..88b48c0 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1590,13 +1590,14 @@ builtin_print(PyObject *self, PyObject *args, PyObject *kwds)
}
PyDoc_STRVAR(print_doc,
-"print(value, ..., sep=' ', end='\\n', file=sys.stdout)\n\
+"print(value, ..., sep=' ', end='\\n', file=sys.stdout, flush=False)\n\
\n\
Prints the values to a stream, or to sys.stdout by default.\n\
Optional keyword arguments:\n\
-file: a file-like object (stream); defaults to the current sys.stdout.\n\
-sep: string inserted between values, default a space.\n\
-end: string appended after the last value, default a newline.");
+file: a file-like object (stream); defaults to the current sys.stdout.\n\
+sep: string inserted between values, default a space.\n\
+end: string appended after the last value, default a newline.\n\
+flush: whether to forcibly flush the stream.");
static PyObject *