Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 78488:e4877d59613d
Fix issue #15607: Update the print builtin function docstring with the new flush keyword.
Patch contributed by Daniel Ellis.
| author | Senthil Kumaran <senthil@uthcode.com> |
|---|---|
| date | Fri, 10 Aug 2012 13:53:45 -0700 |
| parents | 4240282a9f4a |
| children | b878df1d23b1 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Fri Aug 10 11:53:54 2012 -0700 +++ b/Python/bltinmodule.c Fri Aug 10 13:53:45 2012 -0700 @@ -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 *
