[issue10436] tarfile.extractfile in "r|" stream mode fails with filenames or members from getmembers()

Lars Gustäbel report at bugs.python.org
Wed Nov 17 10:32:31 CET 2010


Lars Gustäbel <lars at gustaebel.de> added the comment:

This behaviour is intentional. A tar archive does not contain a central directory structure, it is just a chain of files. As a side-effect it is possible to have multiple files with the same name in one archive, e.g. when append mode was used. That's why the archive must be scanned from the beginning to the end as soon as you reference an archive member by its name.
The best way to deal with this issue in my opinion is to improve the documentation for the stream interface.

----------
assignee:  -> lars.gustaebel
nosy: +lars.gustaebel
priority: normal -> low
versions: +Python 3.1, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10436>
_______________________________________


More information about the Python-bugs-list mailing list