[issue27590] tarfile module next() method hides exceptions

2016-07-25 Thread Yujie Chen
Yujie Chen added the comment: I do want tarfile module to stop at the first invalid header. My question is why does tarfile module NOT throw exception about the error in header, instead it just hide it silently. -- ___ Python tracker <

[issue27590] tarfile module next() method hides exceptions

2016-07-22 Thread Yujie Chen
Yujie Chen added the comment: Yeah, I just tried on Python3.5 and it didn't report any errors either. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27590] tarfile module next() method hides exceptions

2016-07-22 Thread Yujie Chen
Yujie Chen added the comment: The other issue is http://bugs.python.org/issue16858 -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27590] tarfile module next() method hides exceptions

2016-07-22 Thread Yujie Chen
New submission from Yujie Chen: I have seen a similar ticket, however that was opened 2 years ago and has nothing more than a brief description. So I opened this new one here, hoping to get some answers. tarfile.TarFile object is iterable and has a next() method. next() will parse the header