mirror of
https://github.com/python/cpython
synced 2026-09-26 16:21:04 +03:00
* Add name and mode attributes for compressed and archived file-like objects
in modules bz2, lzma, tarfile and zipfile.
* Change the value of the mode attribute of GzipFile from integer (1 or 2)
to string ('rb' or 'wb').
* Change the value of the mode attribute of ZipExtFile from 'r' to 'rb'.
7 lines
462 B
ReStructuredText
7 lines
462 B
ReStructuredText
Added :attr:`!name` and :attr:`!mode` attributes for compressed and archived
|
|
file-like objects in modules :mod:`bz2`, :mod:`lzma`, :mod:`tarfile` and
|
|
:mod:`zipfile`. The value of the :attr:`!mode` attribute of
|
|
:class:`gzip.GzipFile` was changed from integer (``1`` or ``2``) to string
|
|
(``'rb'`` or ``'wb'``). The value of the :attr:`!mode` attribute of the
|
|
readable file-like object returned by :meth:`zipfile.ZipFile.open` was
|
|
changed from ``'r'`` to ``'rb'``.
|