]> granicus.if.org Git - python/commitdiff
Fix issue #15607: Update the print builtin function docstring with the new flush...
authorSenthil Kumaran <senthil@uthcode.com>
Fri, 10 Aug 2012 20:53:45 +0000 (13:53 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Fri, 10 Aug 2012 20:53:45 +0000 (13:53 -0700)
Patch contributed by Daniel Ellis.

Python/bltinmodule.c

index e6511a1ae6bdc262e211cd51aa7bbb71092d6247..88b48c0fa681b0f32ebb433b141cb13f5008802e 100644 (file)
@@ -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 *