消息 [221597]
>>> import lzma
>>> f = lzma.open('22h_ticks_bad.bi5')
>>> len(f.read())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/serhiy/py/cpython/Lib/lzma.py", line 310, in read
return self._read_all()
File "/home/serhiy/py/cpython/Lib/lzma.py", line 251, in _read_all
while self._fill_buffer():
File "/home/serhiy/py/cpython/Lib/lzma.py", line 225, in _fill_buffer
raise EOFError("Compressed file ended before the "
EOFError: Compressed file ended before the end-of-stream marker was reached
This is similar to issue1159051. We need a way to say "read as much as possible without error and raise EOFError only on next read". |
|
| 日期 |
用户 |
动作 |
参数 |
| 2014-06-26 08:00:23 | serhiy.storchaka | 修改 | recipients:
+ serhiy.storchaka, nadeem.vawda, josh.r, vnummela |
| 2014-06-26 08:00:23 | serhiy.storchaka | 修改 | messageid: <1403769623.67.0.427378341296.issue21872@psf.upfronthosting.co.za> |
| 2014-06-26 08:00:23 | serhiy.storchaka | 链接 | issue21872 messages |
| 2014-06-26 08:00:23 | serhiy.storchaka | 创建 | |
|