[New-bugs-announce] [issue18321] Multivolume support in tarfile module

Eduardo Robles Elvira report at bugs.python.org
Fri Jun 28 10:06:17 CEST 2013

New submission from Eduardo Robles Elvira:

The patch attached provides implementation for multivolume support for tarfile module. It contains both the changes in the module and a battery of unit tests. It contains support for multivolume for both GNU and PAX formats.

The main idea behind this proposal is that for dealing with new volumes, the user will provide a callback function. In this callback function the user typically calls to TarFile.open_volume(filename) with the appropiate filename. This is quite flexible in the sense that the callback function could even ask the user for the filename of the next volume (as tar command does), or do anything they need before returning or before calling to open_volume. 

Please feel free to comment on how to improve the implementation or the API. Documentation for the new feature will be provided at a later stage of the review process if the patch gets a good review.

components: Library (Lib)
files: cpython-tarfile-multivolume.patch
keywords: patch
messages: 191979
nosy: edulix
priority: normal
severity: normal
status: open
title: Multivolume support in tarfile module
versions: Python 3.4
Added file: http://bugs.python.org/file30720/cpython-tarfile-multivolume.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list