Re: 3.2 can't extract tarfile produced by 2.7

2012-12-27 Thread Ian Kelly
On Thu, Dec 27, 2012 at 12:25 PM, Ian Kelly wrote: > You're correct that it makes no sense to open a tar file in binary > mode, Of course that should have read: "it makes no sense to open a tar file in text mode." -- http://mail.python.org/mailman/listinfo/python-list

Re: 3.2 can't extract tarfile produced by 2.7

2012-12-27 Thread Ian Kelly
On Thu, Dec 27, 2012 at 11:50 AM, Steven W. Orr wrote: > Really? I thought that the whole idea of using "rb" or "wb" was something > that was necessitated by WinBlo$e. We're not doing IO on a text file here. > It's a tar file which by definition is binary and it's not clear to me why > unicode has

Re: 3.2 can't extract tarfile produced by 2.7

2012-12-27 Thread Steven W. Orr
On 12/26/2012 11:11 AM, Benjamin Kaplan wrote: On Dec 26, 2012 11:00 AM, "Antoon Pardon" mailto:antoon.par...@rece.vub.ac.be>> wrote: > > I am converting some programs to python 3. These programs manipulate tarfiles. In order for the python3 programs to be really useful > they need to be able

Re: 3.2 can't extract tarfile produced by 2.7

2012-12-26 Thread Benjamin Kaplan
On Dec 26, 2012 11:00 AM, "Antoon Pardon" wrote: > > I am converting some programs to python 3. These programs manipulate tarfiles. In order for the python3 programs to be really useful > they need to be able to process the tarfiles produced by python2 that however seems to be a problem. > > This

Re: 3.2 can't extract tarfile produced by 2.7

2012-12-26 Thread Xavier Combelle
You probably want to write of = open("DUMP.tbz", "wb") and gf =open("DUMP.tbz", "rb") -- http://mail.python.org/mailman/listinfo/python-list