[issue13158] tarfile.TarFile.getmembers misses some entries
New submission from Sebastien Binet : 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: http://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/python ) has troubles giving the complete content of a tar ball. see: $ 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())) o.close() ## EOF ## is it a known bug ? (this of course prevents TarFile.extractall to be useful w/ python3...) -s -- 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 <http://bugs.python.org/issue13158> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13158] tarfile.TarFile.getmembers misses some entries
Sebastien Binet added the comment: one interesting additional piece of information is that if I un-tar that file and re-tar it w/o gzip compression, getmembers gets the right answer. -s -- ___ Python tracker <http://bugs.python.org/issue13158> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13158] tarfile.TarFile.getmembers misses some entries
Sebastien Binet added the comment: thanks! > The format of the archive is of very bad quality BTW ;-) well, that's C++ :P -s -- ___ Python tracker <http://bugs.python.org/issue13158> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1381] cmath is numerically unsound
Sebastien Binet added the comment: hi there, it seems there is still a problem, at least with asinh(-2j) see: $ python Python 2.6.5 (r265:79063, Apr 1 2010, 05:28:39) [GCC 4.4.3 20100316 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy as np >>> np.__version__ '1.4.0' >>> import cmath >>> cmath.asinh(-2j) (1.3169578969248166-1.5707963267948966j) >>> np.arcsinh(-2j) (-1.3169578969248164-1.5707963267948966j) same behaviour for python3.1: $ python3 Python 3.1.2 (r312:79147, Apr 1 2010, 09:12:21) [GCC 4.4.3 20100316 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import cmath >>> cmath.asinh(-2j) (1.3169578969248166-1.5707963267948966j) cheers, sebastien. -- nosy: +bins versions: +Python 3.1 ___ Python tracker <http://bugs.python.org/issue1381> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1381] cmath is numerically unsound
Sebastien Binet added the comment: hi Mark, that may very well be so, but I'd naively standardize on C/Fortran behaviour (but that's probably my physicist bias) on my platform, the following piece of C-code: $ cat test_cmath.c #include #include int main(int argc, char** argv) { complex c = casinh(-2*I); printf("asinh(-2j) = %g + %gi\n", creal(c), cimag(c)); return 0; } /* EOF */ gives: $ ./a.out asinh(-2j) = -1.31696 + -1.5708i cheers, sebastien. -- ___ Python tracker <http://bugs.python.org/issue1381> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1381] cmath is numerically unsound
Sebastien Binet added the comment: > Note that in your program, you're feeding complex(-0.0, -2.0) to asinh, > not complex(0.0, -2.0). ah! (ducking) -- ___ Python tracker <http://bugs.python.org/issue1381> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com