[Python-checkins] cpython: Fix issue #15607: Update the print builtin function docstring with the new
senthil.kumaran
python-checkins at python.org
Fri Aug 10 22:55:51 CEST 2012
http://hg.python.org/cpython/rev/e4877d59613d
changeset: 78488:e4877d59613d
user: Senthil Kumaran <senthil at uthcode.com>
date: Fri Aug 10 13:53:45 2012 -0700
summary:
Fix issue #15607: Update the print builtin function docstring with the new flush keyword.
Patch contributed by Daniel Ellis.
files:
Python/bltinmodule.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1590,13 +1590,14 @@
}
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 *
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list