New submission from Michael Birtwell:

If you partially iterate over a tarfile then try and restart iteration of that 
tarfile it will continue from where it left off rather than restarting from the 
beginning.

I've only tried this with the tarfile implementation in python 2.7 but the 3.x 
code looks the same in this respect.

I've included a patch with my approach to fixing this.

----------
components: Library (Lib)
files: fix-tarfile-restart-iteration.patch
keywords: patch
messages: 176863
nosy: mbirtwell
priority: normal
severity: normal
status: open
title: Restarting iteration over tarfile continues from where it left off.
versions: Python 2.7
Added file: http://bugs.python.org/file28200/fix-tarfile-restart-iteration.patch

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

Reply via email to