]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115961: Add name and mode attributes for compressed file-like objects (GH-116036)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 21 Apr 2024 08:46:39 +0000 (11:46 +0300)
committerGitHub <noreply@github.com>
Sun, 21 Apr 2024 08:46:39 +0000 (11:46 +0300)
commit51ef89cd9acbfbfa7fd8d82f0c6baa388bb650c9
treeeb6f52baa37360fb86c7401d12c47f51ad3795af
parentccda73828473576c57d1bb31774f56542d6e8964
gh-115961: Add name and mode attributes for compressed file-like objects (GH-116036)

* 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'.
17 files changed:
Doc/library/bz2.rst
Doc/library/gzip.rst
Doc/library/lzma.rst
Doc/library/tarfile.rst
Doc/library/zipfile.rst
Doc/whatsnew/3.13.rst
Lib/bz2.py
Lib/gzip.py
Lib/lzma.py
Lib/tarfile.py
Lib/test/test_bz2.py
Lib/test/test_gzip.py
Lib/test/test_lzma.py
Lib/test/test_tarfile.py
Lib/test/test_zipfile/test_core.py
Lib/zipfile/__init__.py
Misc/NEWS.d/next/Library/2024-02-28-10-41-24.gh-issue-115961.P-_DU0.rst [new file with mode: 0644]