Skip to content

Commit 8f50912

Browse files
committed
Issue #1625: Document BZ2File's lack of support for multi-stream inputs.
1 parent ed3b867 commit 8f50912

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Doc/library/bz2.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ Handling of compressed files is offered by the :class:`BZ2File` class.
6565
Support for the :keyword:`with` statement was added.
6666

6767

68+
.. note::
69+
70+
This class does not support input files containing multiple streams (such
71+
as those produced by the :program:`pbzip2` tool). When reading such an
72+
input file, only the first stream will be accessible. If you require
73+
support for multi-stream files, consider using the third-party `bz2file
74+
module <http://pypi.python.org/pypi/bz2file>`_ instead of this class.
75+
76+
6877
.. method:: close()
6978

7079
Close the file. Sets data attribute :attr:`closed` to true. A closed file

0 commit comments

Comments
 (0)