diff options
| author | Senthil Kumaran <senthil@uthcode.com> | 2012-08-10 13:53:45 -0700 |
|---|---|---|
| committer | Senthil Kumaran <senthil@uthcode.com> | 2012-08-10 13:53:45 -0700 |
| commit | 6816c02a36f6f67e7ef54f30d6943290573a15e0 (patch) | |
| tree | d911456e5b7226ec61add26e5ea1c2b5d6b4d5dd /Python/bltinmodule.c | |
| parent | 317d0b16a70a62e5f7b73342bb683d5328eccf71 (diff) | |
| download | cpython-6816c02a36f6f67e7ef54f30d6943290573a15e0.tar.gz | |
Fix issue #15607: Update the print builtin function docstring with the new flush keyword.
Patch contributed by Daniel Ellis.
Diffstat (limited to 'Python/bltinmodule.c')
| -rw-r--r-- | Python/bltinmodule.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index e6511a1ae6..88b48c0fa6 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 * |
