PyDocs

Nav

Data Compression and Archiving

BZ2File.read1

bz2

method of BZ2File · Added in 3.3 (source)
  • BZ2File.read1(size=-1)
Read up to size uncompressed bytes, while trying to avoid
making multiple reads from the underlying stream. Reads up to a
buffer's worth of data if size is negative.

Returns b'' if the file is at EOF.
0 Examples
No examples for bz2/BZ2File.read1.
See Also
No see-alsos for bz2/BZ2File.read1
0 Notes
No notes for BZ2File.read1