mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +00:00
#5821: add some capabilities of TarFile's file-like object.
This commit is contained in:
parent
64034bbf84
commit
cf5608df81
1 changed files with 3 additions and 2 deletions
|
|
@ -384,8 +384,9 @@ object, see :ref:`tarinfo-objects` for details.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
The file-like object is read-only and provides the following methods:
|
The file-like object is read-only. It provides the methods
|
||||||
:meth:`read`, :meth:`readline`, :meth:`readlines`, :meth:`seek`, :meth:`tell`.
|
: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)
|
.. method:: TarFile.add(name, arcname=None, recursive=True, exclude=None)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue