summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-01-02 10:20:40 -0600
committerBenjamin Peterson <benjamin@python.org>2015-01-02 10:20:40 -0600
commitf5992ffa148226ea05fecd42bda0715e05bb5a8e (patch)
tree5a2b6cb8c8d569ff50ef252b6deac865c3b5422d /documentation
parent53cdae597c8de9378d879ec63da4cf510f82d329 (diff)
downloadsix-git-f5992ffa148226ea05fecd42bda0715e05bb5a8e.tar.gz
support the flush parameter of print_ (fixes #106)
Diffstat (limited to 'documentation')
-rw-r--r--documentation/index.rst5
1 files changed, 3 insertions, 2 deletions
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::