Tin mới
gh-132983: Introduce `compression` package and move `_compression` module (GH-133018)
gh-115961: Add name and mode attributes for compressed file-like objects (GH-116036)
bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016)

bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol correctly (GH-26764)
bpo-43787: Add __iter__ to GzipFile, BZ2File, and LZMAFile (GH-25353)
bpo-43785: Improve BZ2File performance by removing RLock (GH-25299)
bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481)
bpo-40443: Remove unused imports in the stdlib (GH-19803)
bpo-39357: Update bz2 docstring: remove buffering (GH-18036)
bpo-39357: Remove buffering parameter of bz2.BZ2File (GH-18028)
bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268)
bpo-33487: improve BZ2File Deprecation and documentation. (GH-6785)
bpo-31370: Remove support for threads-less builds (#3385)
Issue #28225: bz2 module now supports pathlib
Issue #23529: Limit the size of decompressed data when reading from
Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF.
#19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF.
Issue #19223: Add support for the 'x' mode to the bz2 module.
Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
Issue #18200: Update the stdlib (except tests) to use
bz2 module: Rewrap docstrings at 72 columns, as per PEP 8.
Stylistic tweaks to the bz2 module to make it easier to transplant changes from
Issue #16304: Further optimize BZ2File.readlines?().
Fix error handling in new fast path of BZ2File.readline().
Issue #16304: Another performance optimization for BZ2File.
Issue #16304: Further performance improvements for BZ2File.
Fix the return value of BZ2File._read_block() to be consistent with comments.
Issue #16034: Fix performance regressions in the new BZ2File implementation.
#15546: Fix BZ2File.read1()'s handling of pathological input data.
Add a function bz2.open(), to match gzip.open().
Clarify acceptable values for BZ2File.__init__'s mode argument.
Make BZ2File's fileobj support easier to use.
Fix seekable() in BZ2File and LZMAFile to check whether the underlying file supports seek().