summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/files/file.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt
index 803f060c29..d79ae57f47 100644
--- a/docs/ref/files/file.txt
+++ b/docs/ref/files/file.txt
@@ -56,6 +56,9 @@ The ``File`` class
was originally opened with; ``None`` means to reopen with the original
mode.
+ Returns ``self``, so that it can be used similar to Python's
+ built-in :func:`python:open()` with the ``with`` statement.
+
.. method:: read(num_bytes=None)
Read content from the file. The optional ``size`` is the number of