Bugs item #1366000, was opened at 2005-11-25 03:14
Message generated for change (Comment added) made by birkenfeld
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: Closed
>Resolution: Fixed
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

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

>Comment By: Georg Brandl (birkenfeld)
Date: 2006-02-18 22:57

Message:
Logged In: YES 
user_id=1188172

Thanks for the bug report, fixed in rev. 42468, 42469(2.4).

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

Comment By: STINNER Victor (haypo)
Date: 2005-11-25 03:21

Message:
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

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1366000&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to