[New-bugs-announce] [issue16601] Restarting iteration over tarfile continues from where it left off.

Michael Birtwell report at bugs.python.org
Mon Dec 3 21:01:12 CET 2012


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 <report at bugs.python.org>
<http://bugs.python.org/issue16601>
_______________________________________


More information about the New-bugs-announce mailing list