From: Georg Brandl Date: Sat, 25 Apr 2009 15:05:04 +0000 (+0000) Subject: #5821: add some capabilities of TarFile's file-like object. X-Git-Tag: v2.7a1~1403 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf5608df8180875528f09afff00e9f898cc85cc0;p=python #5821: add some capabilities of TarFile's file-like object. --- diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index aabd6410bf..29968396e0 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)