diff options
author | Georg Brandl <georg@python.org> | 2009-04-25 15:05:04 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-25 15:05:04 (GMT) |
commit | cf5608df8180875528f09afff00e9f898cc85cc0 (patch) | |
tree | 0641bf05cf4c572a7dcfa31060f07a5feb354a2d /Doc | |
parent | 64034bbf8489849ae75b91ece9d29177623dc788 (diff) | |
download | cpython-cf5608df8180875528f09afff00e9f898cc85cc0.zip cpython-cf5608df8180875528f09afff00e9f898cc85cc0.tar.gz cpython-cf5608df8180875528f09afff00e9f898cc85cc0.tar.bz2 |
#5821: add some capabilities of TarFile's file-like object.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/tarfile.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index aabd641..2996839 100644 --- a/Doc/library/tarfile.rst +++ b/Doc/library/tarfile.rst @@ -384,8 +384,9 @@ object, see :ref:`tarinfo-objects` for details. .. note:: - The file-like object is read-only and provides the following methods: - :meth:`read`, :meth:`readline`, :meth:`readlines`, :meth:`seek`, :meth:`tell`. + The file-like object is read-only. It provides the methods + :meth:`read`, :meth:`readline`, :meth:`readlines`, :meth:`seek`, :meth:`tell`, + and :meth:`close`, and also supports iteration over its lines. .. method:: TarFile.add(name, arcname=None, recursive=True, exclude=None) |