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

2010-11-17 Thread David Nesting
David Nesting added the comment: Thanks, Lars. And this does make complete sense to me in retrospect. Better documentation here would help a lot. I'm happy to take a stab at this. Short of labeling methods as "safe for streaming" versus "unsafe for streaming"

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

2010-11-16 Thread David Nesting
New submission from David Nesting : When opening a tarfile with mode "r|" (streaming mode), extractfile("filename") and extractfile(mytarfile.getmembers()[0]) raise "tarfile.StreamError: seeking backwards is not allowed". extractfile(mytarfile.next()) succeed