changeset: 78488:e4877d59613d user: Senthil Kumaran date: Fri Aug 10 13:53:45 2012 -0700 files: Python/bltinmodule.c description: Fix issue #15607: Update the print builtin function docstring with the new flush keyword. Patch contributed by Daniel Ellis. diff -r e024f6ba5ed8 -r e4877d59613d Python/bltinmodule.c --- 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 *

AltStyle によって変換されたページ (->オリジナル) /