diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-02-11 23:34:18 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-02-11 23:34:18 (GMT) |
commit | d7e5c6ed7f8402a3ce2e6acb0cc6253456878773 (patch) | |
tree | f2e36f329f66726fadcf2d495c9dee20838beb4b /Doc/whatsnew | |
parent | 7edbe30e70a9d81a9402b64f3b8e772057e2a897 (diff) | |
download | cpython-d7e5c6ed7f8402a3ce2e6acb0cc6253456878773.zip cpython-d7e5c6ed7f8402a3ce2e6acb0cc6253456878773.tar.gz cpython-d7e5c6ed7f8402a3ce2e6acb0cc6253456878773.tar.bz2 |
Add section on bz2 module to whatsnew/3.3.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.3.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index fcc56a5..8d3f20f 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -326,6 +326,28 @@ The :mod:`array` module supports the :c:type:`long long` type using ``q`` and (Contributed by Oren Tirosh and Hirokazu Yamamoto in :issue:`1172711`) +bz2 +--- + +The :mod:`bz2` module has been rewritten from scratch. In the process, several +new features have been added: + +* :class:`bz2.BZ2File` can now read from and write to arbitrary file-like + objects, by means of its constructor's *fileobj* argument. + + (Contributed by Nadeem Vawda in :issue:`5863`) + +* :class:`bz2.BZ2File` and :func:`bz2.decompress` can now decompress + multi-stream inputs (such as those produced by the :program:`pbzip2` tool). + :class:`bz2.BZ2File` can now also be used to create this type of file, using + the ``'a'`` (append) mode. + + (Contributed by Nir Aides in :issue:`1625`) + +* :class:`bz2.BZ2File` now implements all of the :class:`io.BufferedIOBase` API, + except for the :meth:`detach` and :meth:`truncate` methods. + + codecs ------ |