[New-bugs-announce] [issue13158] tarfile.TarFile.getmembers misses some entries

Sebastien Binet report at bugs.python.org
Wed Oct 12 14:54:32 CEST 2011

New submission from Sebastien Binet <binet at cern.ch>:

hi there,

it seems tarfile in python 3.2.2 (as installed in archlinux, but I don't see any additional patch applied on top of the vanilla sources:
) has troubles giving the complete content of a tar ball.

$ wget http://downloads.sourceforge.net/sourceforge/boost/boost_1_44_0.tar.gz

$ md5sum boost_1_44_0.tar.gz 
085fce4ff2089375105d72475d730e15  boost_1_44_0.tar.gz

$ python --version
Python 3.2.2

$ python2 --version
Python 2.7.2

$ python ./foo.py
>>> 8145

$ python2 ./foo.py 
>>> 33635

where foo.py is:
import tarfile
o = tarfile.open("boost_1_44_0.tar.gz")
print(">>> %s" % len(o.getmembers()))
## EOF ##

is it a known bug ?

(this of course prevents TarFile.extractall to be useful w/ python3...)


messages: 145393
nosy: bins
priority: normal
severity: normal
status: open
title: tarfile.TarFile.getmembers misses some entries
type: behavior
versions: Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list