Issue 1366000: Bug bz2.BZ2File(...).seek(0,2) - Python tracker (original) (raw)

Issue1366000

Created on 2005-11-25 02:14 by vstinner, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python_bz2module_seek_v2.patch vstinner,2005-11-25 02:21 New patch to fix bz2.BZ2File(...).seek(0,2) ("version 2" :-))
Messages (3)
msg26917 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2005-11-25 02:14
Hi, Look at the following code: import bz2 bz2.BZ2File("test.bz2","r") bz2.seek(0,2) assert bz2.tell() != 0 seek() method is buggy (when 0<=offset and where=2). I wrote a patch. Haypo
msg26918 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2005-11-25 02:21
Logged In: YES user_id=365388 Please check it :-) I'm not sure that it works well because I'm new in CPython code. Oooooops ... I just tried my code, and seek(x,2) with 0<x worked like seek(-x,2)! So here is a new patch :-P Haypo
msg26919 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-02-18 21:57
Logged In: YES user_id=1188172 Thanks for the bug report, fixed in rev. 42468, 42469(2.4).
History
Date User Action Args
2022-04-11 14:56:14 admin set github: 42623
2005-11-25 02:14:39 vstinner create