Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I share Martin's opinion that this is a misfeature. User code can check 
seekable() and use seek() if it returns True or cache necessary data in memory 
if it returns False, because it is expected that seek() is more efficient. But 
in case of GzipFile it is not efficient, and can lead to decompression the 
whole content of the file and to much worse performance.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to