[ python-Bugs-1366000 ] Bug bz2.BZ2File(...).seek(0,2)

SourceForge.net noreply at sourceforge.net
Fri Nov 25 03:14:41 CET 2005


Bugs item #1366000, was opened at 2005-11-25 03:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1366000&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: STINNER Victor (haypo)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug bz2.BZ2File(...).seek(0,2)

Initial Comment:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1366000&group_id=5470


More information about the Python-bugs-list mailing list