From f5992ffa148226ea05fecd42bda0715e05bb5a8e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 2 Jan 2015 10:20:40 -0600 Subject: support the flush parameter of print_ (fixes #106) --- documentation/index.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'documentation/index.rst') diff --git a/documentation/index.rst b/documentation/index.rst index 627862a..1f27400 100644 --- a/documentation/index.rst +++ b/documentation/index.rst @@ -270,10 +270,11 @@ Python 2 and 3. :func:`exec` with them should be avoided. -.. function:: print_(*args, *, file=sys.stdout, end="\\n", sep=" ") +.. function:: print_(*args, *, file=sys.stdout, end="\\n", sep=" ", flush=False) Print *args* into *file*. Each argument will be separated with *sep* and - *end* will be written to the file after the last argument is printed. + *end* will be written to the file after the last argument is printed. If + *flush* is true, ``file.flush()`` will be called after all data is written. .. note:: -- cgit v1.2.1