]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #1625: Document BZ2File's lack of support for multi-stream inputs.
authorNadeem Vawda <nadeem.vawda@gmail.com>
Sat, 4 Feb 2012 21:44:49 +0000 (23:44 +0200)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sat, 4 Feb 2012 21:44:49 +0000 (23:44 +0200)
Doc/library/bz2.rst

index d9a2bad7567f857fb3e663d5d8e6a77462bc05e2..e493ddd1a88fd40ed713bfba781c38e95c18272d 100644 (file)
@@ -65,6 +65,15 @@ Handling of compressed files is offered by the :class:`BZ2File` class.
       Support for the :keyword:`with` statement was added.
 
 
+   .. note::
+
+      This class does not support input files containing multiple streams (such
+      as those produced by the :program:`pbzip2` tool). When reading such an
+      input file, only the first stream will be accessible. If you require
+      support for multi-stream files, consider using the third-party `bz2file
+      module <http://pypi.python.org/pypi/bz2file>`_ instead of this class.
+
+
    .. method:: close()
 
       Close the file. Sets data attribute :attr:`closed` to true. A closed file