python 2.4: tarfile tell() and seek() seem to be broeken

2005-06-01 Thread N. Volbers
Hello everyone,

I noticed that when you open a zipped tarball using 'tarfile' and if you
then get the pseudo-file descriptor fd for a file via 'extractfile', then
fd.tell() is broken in the following way:

- before reading anything from fd, fd.tell() will return 0 (that's still
ok)
- after reading a line via fd.readline(), fd.tell() will return a
value different from 0 (still ok, I guess)
- subsequent calls of fd.readline() and fd.tell() will yield the correct
lines but always the same value from fd.tell().  

fd.seek() seems to be unaffected from this strange behaviour.

Is there a mistake on my side or does this need fixing?

Best regards,

Niklas Volbers.


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python 2.4: tarfile tell() and seek() seem to be broeken

2005-06-02 Thread N. Volbers
Am Thu, 02 Jun 2005 17:57:20 +0200 schrieb Lars Gustäbel:

> On Wed, 01 Jun 2005 14:58:23 +0200, N. Volbers wrote:
> 
>> - subsequent calls of fd.readline() and fd.tell() will yield the correct
>> lines but always the same value from fd.tell().  
[...]
> 
> Thank you for pointing that out. I'll take care of this getting fixed.

Thanks for taking care of it ;-)

-- 
http://mail.python.org/mailman/listinfo/python-list