[issue16601] Restarting iteration over tarfile continues from where it left off.

2013-05-09 Thread Michael Birtwell

Michael Birtwell added the comment:

Sorry about the delay in the contributor form. Things got in the way then I 
completely forgot about it. It's done now.

--

___
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



[issue16601] Restarting iteration over tarfile continues from where it left off.

2012-12-03 Thread Michael Birtwell

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



[issue16601] Restarting iteration over tarfile continues from where it left off.

2012-12-03 Thread Michael Birtwell

Michael Birtwell added the comment:

Embarrassingly as soon as I uploaded that patch I found a problem with it. I 
hadn't taken in to account the special case for the first member.

Here's a replacement patch

--
type:  - behavior
Added file: 
http://bugs.python.org/file28202/fix-tarfile-restart-iteration2.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



[issue16601] Restarting iteration over tarfile continues from where it left off.

2012-12-03 Thread Michael Birtwell

Michael Birtwell added the comment:

Here's a patch on the tarfile's unittest module.

--
Added file: 
http://bugs.python.org/file28203/test-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